Java: exec(): execute an app with whitespaces in path?
I use the java exec() command to execute some commands on my unix.
The problem is, that I cannot exec Applications, which have a path with whitespaces inside. A few examples:
This works:
"/Volumes/WD120/folder/App"
This doesnt work:
"/Volumes/WD120/some folder/App"
"/Volumes/WD120/some\ folder/App"
"/Volumes/WD120/some\\ folder/App"
Does anyone have an idea how this can be done? To escape them doesnt work and actually, there has to be some way, right?
Thanks alot, I really need help on this, google doesn't give me anything helpful 😟
-Lucas