• Post Reply Bookmark Topic Watch Topic
  • New Topic

java -jar  RSS feed

 
Raja Sathci
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 22828
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!