by @kodeazy

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

Home » java » javac is not recognized as an internal or external command, operable program or batch file

ztext Detection Image

  • Check JDK is installed or not.
  • If not installed go to Install JDK and install JDK.
  • Check environment variables in your system for the path of bin file in C drive as below.
  • Add the Path of bin file in JDK as below screenshot in environment variables by clicking new in user variables and press OK.

adding path

  • My Path is C:\Program Files\Java\jdk-16.0.1\bin.
  • Restart the system and try executing javac command in terminal. adding path