Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java -jar

 
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: 21892
36
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.
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!