3

I hava a .app application and I want to include it inside my project and launch it from inside a jar. Here is what I have so far:

Runtime.getRuntime().exec( new String[] { "open", "SomeApp.app"} );

SomeApp.app is placed in the root of the src folder.

Jakir00
  • 2,023
  • 4
  • 20
  • 32

1 Answers1

4

you need to execute

open /path/to/some.app  

and

Runtime.getRuntime().exec( new String[] { "open", "/path/to/app/SomeApp.app"} );

now your app is in jar so it won't be a app file any more you need to have it on disk at /path/to/app

You need to extract .app file from .jar and then execute it here is how to do it

Community
  • 1
  • 1
jmj
  • 237,923
  • 42
  • 401
  • 438