Help! How to run a jar file which is specified a path
hi, AllI met a problem couldn't be solved.I don't know run a specified path jar. For example, test.jar in c:\, I want run the jar anywhere on my computer, i worte a bat file like that java -jar c:\test.jar , but the bat file couldn't work.
[270 byte] By [
J_Town] at [2007-9-30 18:31:37]

Hi ,
The batch file looks absolutely fine. Only thing is dependencies. If the jar file requires some more jar files or class files which were in that directory in which it was working, the classpath should include them.
set classpath=%classpath%;other.jar;other.class;.;
java -jar c:\test.jar
Hope this helps.
Regards,
Chandra