File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running a executable jar file from another program

 
mohit junejaa
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic