The PATH is the address of the folder where javac.exe file located. To resolve the error, we need to add PATH (used by operating system to find the executable files) variable to the System's environment variable. If the PATH is not added to the environment variable or not properly set, we cannot compile the Java application. The reason behind to occur the error is that the PATH is not added to the System's environment variable. The javac.exe file is located in the bin folder of the JDK. It is because the JVM is unable to find the javac.exe file. Javac is not recognized is an error occurs while we compile the Java application. The following image shows, what the error shows. The error we get because the PATH is not properly set. The javac.exe file exists in the bin folder of the JDK installation folder. It means that the javac.exe file is not found by the compiler. When we type the command in the Command Prompt, the prompt refuse to identify the javac command. In Java, javac is a command that compiles the Java source code. We will also see the possible solutions to resolve the error.īefore moving ahead in this section, let's understand the meaning of the error statement javac is not recognized as internal or external command. In this section, we will detect why the javac command is not recognized by the compiler and what is the reasons to generate javac is not recognized. But the error javac is not recognized is the most common error that is faced by many new Java programmer.
![java cmd c java cmd c](https://i.ytimg.com/vi/aSc_w6gGkXY/maxresdefault.jpg)
In Java, we usually get the errors and exceptions during the compilation time.