Take the 2-minute tour ×  I need to execute an external program
from within my java application. I'm programming on a mac and
have a .app application I'd like to run when the user selects
it. It runs successfully on windows using:  String cmd =
"path_to_executable\program.exe\"";  Process p =
Runtime.getRuntime().exec(cmd); ...  But this does not work with
an .app file. I've opened the contents of the .app file and have
found a Unix executable file along with a other supporting files
for the appliation. Is the unix executable file equivalent to an
.exe file ?  share|improve this question add comment  3 Answers
up vote 2 down vote accepted  Launching an Mac application from
Java on OS X is just a matter of invoking the built-in open
command with the Application as a parameter. The open command
line tool in OS X knows how to correctly open many different
file types, including application bundles. If you were trying to
launch the TextEdit.app application, you would invoke:  open
/Applications/TextEdit.app  In J