Hi,
I am trying to run a jar file using the command prompt but get 'Unable to access jarfile' error.
I want to run the jar file from c:\, where as my jar file is in c:\apps\jar folder. I have classpath pointing to c:\apps\jar\myapp.jar but still get this error.
set classpath=c:\apps\jar\myapp.jar;%classpath%
java -jar myapp.jar
It works if I run the command file from the same location where the jar file resides but not from other folder. The reason I do not want to
test in same folder is because I will be scheduling this command file to run the java program using a scheduler.
Any thoughts??
Thanks