Hello ARIS Community,
If I use the JavaImporter in the previous ARIS version 7.1, I had to place the jar file in the \server\lib directory. Is it any different in version 9.8? I ask because running the Report I created in 7.1 on 9.8 gives an error. It seems like it does not know about the JAR file being imported.
var imp = JavaImporter(Packages.iamwebserviceconsumer);
......
var result = imp.IAMWebserviceConsumer.searchByUID(sUID);
The error is as follows:
TypeError: Cannot call method "searchByUID" of undefined
So it does not appear to know about the imported package. Any ideas?
Thanks,
Allen
Hello, Almog Alfassi
Will this option work if you place the JAR file in the folder on the client computer "C:\Software\ARIS10.0\client\jre\lib"?I did this, but when I run the script, I get the error: "TypeError: Cannot call method "getMes" of undefined". The use of the directory "C:\Software\ARIS10.0\client\jre\lib\ext" also did not lead to success.
Yes, a runtime library for providing classes to a report script has to be accessible for ARIS Server.
However, since I am replying here on behalf of the software vendor I can't officially recommend you to add new JAR files in the ARIS installation.
Here's a post where the solution was to import the JAR file in Common Files. That might be an alternative to putting the file in the lib folder of ARIS Server: https://www.ariscommunity.com/users/prosci8/2019-01-17-send-email-report-script
Cheers
Rune