[java] 'jar' is not recognized as an internal or external command
...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?
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.
Quote:Original post by EGD EricHave you ever thought about typping the jar command with its path?
C:\Program Files\Java\jdk1.5.0_04\bin
I think you can create jar.cmd in your directory if you are in desperate need of use of the command line.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement