tags:

views:

59

answers:

1

I need run a system call to run a .app file from java. Any ideas?

+1  A: 
String cmd = "./file.app";
Runtime run = Runtime.getRuntime();
Process pr = run.exec(cmd);
pr.waitFor();

Something like that?

Alexandru Luchian
Application bundles on the Mac are just specially laid out folders. The path to the binary would actually be something like:/Applications/App.app/Contents/MacOS/App
Nate
I'd set cmd to "open ./file.app"
epatel