Sidebar

How do I load my version of a library before QIE's shipped version?

0 votes
284 views
asked Apr 20, 2017 by ben-s-7515 (12,640 points)
retagged Apr 26, 2020 by amanda-w-3695
I need to use a library that QIE is using, but the version in QIE is not the same as the one I need to use for my script.  How do I tell QIE to use my version and not the version that is shipped with the engine?

1 Answer

0 votes
 
Best answer
To do this, you will need to use the qie.preloadLibDir java option.  This allows you to specify a folder on your system that will contain jars that you would like to use before any library shipped with QIE.  

For example, if you needed to use a specific version of bouncyCastle, you could copy the jar into your 'C:\ProgramData\QIE\preLoadLib' directory.  You will then need to add a line to your 'QIE Service Propeties' --> 'Startup' --> 'Arguments' like this:
'-Dqie.preloadLibDir=C:\ProgramData\QIE\preLoadLib'.

WARNING: Using this allows you to override the libraries shipped with QIE.  However, if there is a conflicting API with the calls that QIE uses, this could prevent the QIE service from starting or running correctly.  If you have questions about this or would like to verify a library before using it, please contact Qvera support.
answered Apr 20, 2017 by ben-s-7515 (12,640 points)
selected Mar 3, 2020 by amanda-w-3695
...