hello all,
I have a jar file that is located in C:\JavaFiles\MyJar.jar
When I execute the jar from the directory where it is located
(i.e.
java -jar MyJar.jar) it works.
When I execute the jar from any other directory - i get:"Unable to access jarfile MyJar.jar".
The jar file source directory was added to my classpath (on windows xp).
What am i doing wrong?
Is it possible to execute a jar file from a directory other than where it is located?
Thanks
Rivka