Get the path of the data directory of the exported app
in
Programming Questions
•
11 months ago
Hi,
I want to launch an external app with
- String[] params = new String[6];
- Runtime.getRuntime().exec(params);
dataPath won't work since it is relative to the current directory, but I want the data folder of the exported app.
Tried it with
- MyClass.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()
I'm running Ubuntu Linux and I'm new to Java.
Thank you!
1