PDA

View Full Version : Use Execute Process to run a JAR?



stewieTL
09-21-2005, 01:09 PM
Has anyone ever tried to use the execute process action to execute and executable JAR file?

for example, if I have a jar called mytool.jar and i run it by calling:
java -cp mytool.jar com.mytool.MyTool

how can i setup Execute Process to run this jar?

gamlidek
10-05-2005, 03:14 PM
if you haven't figured this out yet...

For the Command, use the following:
$J(java.home)/bin/java

For the Arguments, use the following array:
-cp
$V(variablethatpointstofolder)/mytool.jar
com.mytool.MyTool

HTH,

/gam/