How to run a jar file from the mid server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2019 11:47 AM
HI everybody,
I develop a java application and I want to run it from the mid server.
So I created a record in table "MID Server JAR Files" and upload the JAR file. I saw that the jar file was downloaded to the mid server to folder "extlib".
Then I created a workflow with activity type "JavaScript Probe" with this script:
var temp= new Packages.com.company.extractstring.Extractortext();
temp.main();
And I'm getting an error message "EvaluatorException (var temp= new Packages.com.company.extractstring.Extractortext(); temp.main();)
So my question is what is the correct way to run the java application in the mid server?
Some more data:
The jar file name is "extractstring"
The package name is: com.company.extractstring
The class is: Extractortext
The method is: public static void main
I tested the java app and it is working ok.
Thank you for your answers
Lior grinberg
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2019 01:33 AM
Hi Lior,
Greetings! Seems I am also facing exact same issue in my deployments. Were you able to deal with it or if possible can you share the approach taken ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2020 09:27 AM
Hi lior grinberg,
Could you please provide details about the solutions.
I am also facing same issue,i need to run the custom jar file.How i can Run it,could you guide how to do it.
Thanks,
Uma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2020 12:19 AM
Hi Uma,
Did you get this working? Any suggestions.