AV

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

by Almog Alfassi
Posted on Mon, 10/31/2016 - 06:02

Hey Allen,

You should place the .jar file in the \server\jre\lib\ext directory and restart the service,

Regards,

Almog.

0
by Allen V. Author
Posted on Wed, 11/02/2016 - 20:47

Hi Almog,

Thanks.  I will try it now.

Regards,

Allen

0
by Yuriy Stolyarov
Posted on Tue, 02/12/2019 - 14:07

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.
0
by Runé Becker
Badge for 'Mastermind' achievement
Posted on Tue, 02/12/2019 - 15:18

In reply to by Felix101

ARIS report scripts are always executed on the ARIS Server. But I can't say whether adding an external JAR file would be accepted that way, or whether an import is needed.

Cheers

Rune

0
by Yuriy Stolyarov
Posted on Wed, 02/13/2019 - 06:41
Thank you Rune.

You want to say that in order for the JAR file to be used, it is better to place it in the 'lib' folder on the server?
0
by Runé Becker
Badge for 'Mastermind' achievement
Posted on Wed, 02/13/2019 - 09:30

In reply to by Felix101

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

0
by Yuriy Stolyarov
Posted on Fri, 02/15/2019 - 07:20

Hello, Rune!

Thank you for your answer!

Unfortunately, adding a JAR file to Common Files did not produce the desired result.

Probably there is only one way - add files to a folder on the server.

0
by Yuriy Stolyarov
Posted on Tue, 02/26/2019 - 07:05
Hello, Rune!

You were right with 'Common files'. Sorry, I forgot about the script settings, I had to specify which script file (JAR) to use in my script. Thank you very much!
0
by Runé Becker
Badge for 'Mastermind' achievement
Posted on Tue, 02/26/2019 - 08:15

In reply to by Felix101

Thanks for sharing your solution, Yuriy! That will help others running in the same issue, but finding here a solution.

Cheers

Rune

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock