Jump to content

  • Log In with Google      Sign In   
  • Create Account


[java] 'jar' is not recognized as an internal or external command


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 EGD Eric   Members   -  Reputation: 106

Like
0Likes
Like

Posted 03 November 2006 - 10:13 AM

...is the message I get when I try to use jar commands. Why is this? I don't understand. I have the JRE and JDK installed into this directory: C:\Program Files\Java For my environment variables, I have: CLASSPATH: .;C:\Program Files\Java\jdk1.5.0_04\bin;C:\Program Files\QuickTime\QTSystem\QTJava.zip Path: (nested among other many other paths) C:\Program Files\Java\j2re1.4.2_12\bin I'm at a loss for what could be going wrong here. Is it the spaces in Program Files? could that be doing it?

Sponsor:

#2 Aldacron   GDNet+   -  Reputation: 3114

Like
0Likes
Like

Posted 03 November 2006 - 11:45 AM

The JRE is on your PATH, not the JDK. The jar tool is not part of the JRE. Put the jdk1.5_04/bin path on your PATH instead. Also, you don't need the JDK bin directory on your CLASSPATH. There aren't any classes in the bin directory for any Java applications to use. You can safely remove it.

#3 Raghar   Members   -  Reputation: 92

Like
0Likes
Like

Posted 04 November 2006 - 02:27 AM

Quote:
Original post by EGD Eric
C:\Program Files\Java\jdk1.5.0_04\bin
Have you ever thought about typping the jar command with its path?
I think you can create jar.cmd in your directory if you are in desperate need of use of the command line.

#4 EGD Eric   Members   -  Reputation: 106

Like
0Likes
Like

Posted 05 November 2006 - 04:55 AM

Thanks Aldacron, that did it. :)





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS