running a executable jar file from another program
Joined: Feb 24, 2006
hi i want to run a executable jar file not frm command line but nther program
is it possible and how to go abt same
Joined: Mar 22, 2005
As long as that jar file is in your classpath, and you know the name of the class implementing the main method (which you can find in the manifest file of the jar), you can call the main method directly. Alternatively, you can call "java -jar xyz.jar" using Runtime.exec.