Windows 7 command line jps not working

10,461

Mildly obvious mistake, but I realize that I had spaces in between the directories in my path and that caused them to not be recognized. So I had %OTHER_PATH%; C:\Program Files\Java\jdk1.7.0_25; %ANOTHER_PATH%, which I just had to switch to %OTHER_PATH%;C:\Program Files\Java\jdk1.7.0_25;%ANOTHER_PATH%

Share:
10,461
Kieran
Author by

Kieran

Updated on June 04, 2022

Comments

  • Kieran
    Kieran almost 2 years

    Others have asked this question but the answer is usually the same and not helpful to my problem. I installed JDK, and added C:\Program Files\Java\jdk1.7.0_25\bin to the path system variable. I checked, jps.exe is in that directory. I restarted my computer but still have had no luck. When I run jps I get the error:

    'jps is not recognized as an internal or external command, operable command or batch file'
    

    When I run C:\Program Files\Java\jdk1.7.0_25\bin\jps.exe on the command line it works fine. Working in Windows 7.