There sometimes we get a need to run a exe file from the java program. Now to run an exe type this Here wer are running notepad.exe from the program. If you want to run another file you have to enter the program name as your_program.exe . If the exe is not in the current directory you need to give the absolute path. You can also get the error value of the program using p.exitValue(); if you need to run another java program or a jar file use java -jar path_to_java_file/file.jar |
Tuesday, December 9, 2008
How to run an Exe from Java program
Subscribe to:
Post Comments (Atom)



0 comments:
Post a Comment