Jar is not recognized

If you are getting a “‘jar’ is not recognized as an internal or external command, operable program or batch file.” after installing J2SE, you probably do not have it set in your path environment.

  1. Grab your jdk directory. Being on Windows 7 x64, mine is
    C:\Program Files\Java\jdk1.7.0_06\bin
  2. Go to Control Panel -> System -> Advanced system settings
  3. Click on the Advanced Tab -> Environment Variables
  4. path

    Adding variable to PATH

  5. Look for the Path variable in the System Variables and click on “Edit”.
  6. Add your folder directory in there with a “;”, for example
    C:\Ruby193\bin;C:\Program Files\Java\jdk1.7.0_06\bin;
Show Comments