I have a code like this:
String[] cmd = { "osascript","mylocation" };
Process process = Runtime.getRuntime().exec(cmd);
process.waitFor();
The location myLocation
file is inside my script
folder. This class is in src
folder. I tried ../script/file
which is not working.
How can I call the file in script
folder?