wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes java -jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java -jar" Watch "java -jar" New topic
Author

java -jar

Raja Sathci
Greenhorn

Joined: Sep 16, 2005
Posts: 10
Hi,
I have set an jar file in a Windows environment variable classpath. Have also confirmed the changes by running the command
echo %classpath%
it does show the jar file.
But however when i run the command java -jar jarfilename it says " unable to access jarfile"

Can any one please help how to overcome this issue

Thanks in advance.

Regards,
Raja
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

If you're using "java -jar" then your classpath is completely irrelevant.

Are you sure you copied and pasted the error message exactly? That looks more like a paraphrase to me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java -jar
 
Similar Threads
Specify classpath when run class in jar file
how to run java -jar with args?
cron job on linux for jar file
CLASSPATH PROBLEM
Facing the problem when loading the servlet but not when compiling.