How to run a jar file from the mid server

lior grinberg2
Tera Expert

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

 

 

7 REPLIES 7

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 ?

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.

Hi Uma,

Did you get this working? Any suggestions.