If I need to start the program from the console, which is located in a folder with a name of two parts (with a space in the name), then I do it like this:
$ open /"My project"/myprogram.app
that is, this folder must be quoted. But how now to make it from the Java program? If you try this:
Runtime.getRuntime().exec("open /\"Meine Projekt\"/myprogram.app");
then nothing happens - myprogram.app does not start. And here is the code:
Runtime.getRuntime().exec("open /Projekt/myprogram.app");
will work.