App folder execution with Java?

Is there a sane way to execute the .app directory directly from Java instead of digging around to find the binary? I have an app with some settings that include external programs to open various things, it would be nice if on OSX the user could just select the .app folder. I could look for the .app extension and handle it differently if needed.

+2


source to share


1 answer


You can simply call "open appname.app" in the terminal. So ... Runtime.getRuntime (). Exec ("open path.app") should work fine.



+3


source







All Articles