Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar command not found (win2k)

 
fred baby
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i've installed j2re1.4.... and have seen that java.exe has been copied into the system32 and system folders, however, i still cannot access the "jar" command in the command line in windows2000 (professional). i'm not really sure what to do, i'm trying to create an executable jar, but without the jar command, that's a no-go! help is appreciated.
 
Steve Chernyak
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure JAVA_HOME\bin is on the path.
JAVA_HOME = your jdk install dir
 
Brian Coates
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be because you got the JRE instead of the JDK. I'm not 100% sure, though.. as I've never downloaded the jre.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Brian's right. (Jessica too, of course. ) The JRE does not allow you to create jar files; you need to get the SDK for that.
 
fred baby
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
success! i installed the SDK, adjusted PATH, and it works. thanks everyone.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic