Hi all.
I am still trying to access a directory out of a jar.
I found a way around, this to use :
What's funny and depressing at the same time, is that it does not behave the same at all when I launch the app through the
IDE (which launches the .class) and the jar.
The last line of the code i have given should print the path to the executable.
- When i launch it with the IDE (.class), i get this:
which is fine and working
- When i launch the .jar i have got something different:
Appart from the change of directory (which is fine), there is an extra "file:"
string that
appeared out of nowhere and causes following code to crash.
Why does the .jar and .class behave differently for this issue? And how to find a workaround?
Thanks a lot
jy
[ August 25, 2007: Message edited by: Jean-Yves Tinevez ]