Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
marcrenearns
marcrenearns's Profile
1
Posts
3
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Get the path of the data directory of the exported app
[6 Replies]
04-Nov-2012 04:10 PM
Forum:
Programming Questions
Hi,
I want to launch an external app with
String[] params = new String[6];
Runtime.getRuntime().exec(params);
one of the parameters is a path to a file that resides in the data directory.
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()
but got some weird temp directory.
I'm running Ubuntu Linux and I'm new to Java.
Thank you!
«Prev
Next »
Moderate user : marcrenearns
Forum