BPMap's picture

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.

Tags: ARIS Report Scripting Java javascript