'javac' is not recognized as an internal or external command, operable program or batch file after adding to PATH

J Moss :

for my coursework we are dealing with javacc. My professor sent us a javacc zip file and followed the set up guide, what i done:

  • Unzipped file
  • coppied the bin directory
  • added it to the PATHS on system variable

when i try to test my code working with javacc i get error:

'javac' is not recognized as an internal or external command,
operable program or batch file.
Eugene Ogongo :

Right click Computer

Click the properties

On the left pane select Advanced System Settings

Select Environment Variables

Under the System Variables, Select PATH and click edit, and then click new and add path as C:\Program Files\Java\jdk1.8.0_131\bin (depending on your installation path) and finally click ok

Next restart your command prompt and open it and try javac

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=334136&siteId=1