Hello Aris Experts,
I try to migrate a script from Aris 7.2 to Aris 9.6. This script uses a jar file (imported in the script category, and imported in the script).
To explain you the problem, I made a simple test with the following code :
java class in the imported jar :
package bpmap.test;
import org.jdom.Element;
public class SimpleTest {
Element elt;
public Element test(){
elt = new Element("test");
return elt;
}
}
My code in the script :
var simpleTest = new Packages.bpmap.test.SimpleTest(); var result = simpleTest.test();
When I run the script on Aris BA 7.2, it works correctly and creates an instance of my java class. The Method test() return the jdom.Element object. --> OK
I do exactly the same in Aris BA 9.6.
When I run the script on Aris BA 9.6, I have the message : java.lang.NoClassDefFoundError : org/jdom/Element.
The both examples use the same jar file.
I tried with other java classes and I get always the same message.
How can I do with ABA 9.6 to use a jar file ?
Thank you in advance for your help.
Best Regards.
Torsten Haase on
Hi,
the import of jars from a script is unchanged in ARIS 9. The error message identifies the error: your class (SimpleTest) has been loaded quite well while org.jdom.element has not been loaded.
JDom is used inside ARIS so the reference to jdom should be possible (for example in a script try Context.getXMLParser). But maybe your jar is linked to another version of JDom than the one that is used/provided by ARIS (JDom 1.1)?
BR, Torsten