Sidebar

How do I import and use a 3rd party Java library in QIE?

+1 vote
471 views
asked Dec 15, 2014 by ron-s-6919 (4,140 points)
I have a 3rd party Java library (JAR) that I would like to use in my custom mapping function.  How do I use that JAR in QIE?

1 Answer

+1 vote
 
Best answer
To import the 3rd party library so that it is availble to use, you will need to configure QIE from System Administration page.  Review the instructions found on this question: https://www.qvera.com/kb/index.php/256/what-are-external-libraries-or-jar-files
 
Once the 3rd party library has been configured, you can use the Java classes in QIE custom mapping functions.  To import an entire package, you can use the following:
 
importPackage(Packages.com.mycompany.mypackage);
 
After that, you can access any of the classes contained in the com.mycompany.mypackage Package.
 
Alternativly, you can access the class directly as follows:
 
var myClass = new Packages.com.mycompany.mypackage.MyClass();
 
answered Dec 15, 2014 by ron-s-6919 (4,140 points)
selected Dec 24, 2014 by sam-s-1510
...