javac not recognized as an internal or external command


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

This error signifies that the PATH variable isn’t set properly.
 

How to fix javac not recognized error

  1. Find the correct path where you installed the JDK. it looks like this: C:\Program Files\Java\jdkxxxx\bin\
  2. Start-menu search for “environment variable” to open the options dialog.
  3. Examine PATH. Remove old Java paths.
  4. Add the new Java path to PATH… Don’t replace the complete old path, just add the JDK bin path.
  5. Edit JAVA_HOME. If not present add a new JAVA_HOME variable with same JDK bin path.
  6. Close and re-open console/IDE.

 

© 2019, https:. All rights reserved. On republishing this post, you must provide link to original post

Leave a Reply.. code can be added in <code> </code> tags