Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running a .exe from java program

 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
I have a java program that calls or launches an exe .My problem is when i jar my java program along with exe , i am unable to run that exe from java program while if i keeps both in file system(unjar),my java program runs exe successfully .Please let me know wot all i need to do to run exe from java file when both be placed in a jar .
thanks
Vikas
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the operating system knows nothing about extracting .exe files from a JAR, I suspect what you want is impossible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic