9 Replies Latest reply on Jan 22, 2010 3:29 AM by 843804

    'jar' is not recognized as an internal or external command

      Hey all,

      Sorry to post something that was already answered, but I cant get the jartool to work from the command line.

      I go to the workspace where my class files are kept
      ie: cd\program files\eclipse\workspace\invoicing project

      And im using the command
      jar cf app.jar MainScreen.class

      And its giving me the following error
      "'jar' is not recognized as an internal or external command, operable program or batch file."

      Now I have tried going here (Windows XP)

      Start>Control Panel>System>Advanced>Enviorment Variables

      And adding 'jar' to both the user and system variables under
      variable name: jar
      variable value: C:\Program Files\Java\jdk1.5.0_02\bin

      But to no avail,

      Obviously what im doing is wrong! So could someone steer me in the right direction?
      Thanks in advance!