|
|
Re: path of a class
|
Posted: Sep 6, 2005 5:19 AM
|
|
Not really.
Maybe I didn't explain it good enough.
Assume that the classes or the jar file lies in c:\myprogram\
In this dir I have the run file called run.cmd wich basically launches the java program. Opening a command shell I change dir to c:\runtest\
Here I type "c:\myprogram\run.cmd"
The result of the getProgramPath method should be "c:\myprogram\", but it is "c:\runtest", since I did not change directory.
The reason for all this is that I want to read some .ini settings from a file stored in the same dir as the jar file, but don't want to change dir.
|
|