File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 13024
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
It's not a secret anymore!