This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Running a .exe from java program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Running a .exe from java program" Watch "Running a .exe from java program" New topic

Running a .exe from java program

vikasids sharma
Ranch Hand

Joined: Aug 01, 2003
Posts: 157
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 .

Vikas Sharma
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Since the operating system knows nothing about extracting .exe files from a JAR, I suspect what you want is impossible.
I agree. Here's the link:
subject: Running a .exe from java program
jQuery in Action, 3rd edition