I will have my program.app in one folder and all the data i need to run that
program in subfolders of that specific folder. What I need to know is what
is the absolute path of the folder where program.app is....
Class.getResource("TheTopFolderNameOfOptionsSubFolder");
...should get you an URL to the directory then.
Note that very long name only needs to be
the names of the folder, not it's entire path.
A better wat to do this is..
Use system properties class to place a single
String in the system area. That string contains
the path to your app.
Note also that using things like "user.dir"
are prone to failure in arcane circumstances,
whereas either of the above two methods should
work reliably.
HTH