wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes  running a executable jar file from another program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " running a executable jar file from another program" Watch " running a executable jar file from another program" New topic
Author

running a executable jar file from another program

mohit junejaa
Ranch Hand

Joined: Feb 24, 2006
Posts: 41
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


scjp 1.4
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41070
    
  43
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: running a executable jar file from another program
 
Similar Threads
Include icon image in JAR file and JAR icons
Executable jar
Stand alone project - working from desktop
is it possible to convert .class to .exe
Destop application