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

1. translated this sentence, you can use Baidu translated copy and paste, can be translated from

Not Recognized IS AS AN the javac Internal or External Command, Operable BATCH Program File or
the javac can not be recognized as an internal or external command, operable program

## can see that this is java environment variable configuration issues

2. We usually install jdk must win + r enter cmd interface enter the command java -version java home return current path

Here 13.0.2 refers to the version number of our jdk

We are here to add a javac -version then there will be problems we are discussing today --- Javac can not be found: javac is not recognized as an internal or external command, operable program or batch file

This time we need to examine two aspects:

First, the environment variable, look at the system environment variable named "JAVA_HOME" whether configured as the latest JDK, JRE can not point oh!

Second, the environment variable, check the "PATH" is configured correctly.

These two steps are the basic steps to set environment variables, in front of me raised a tutorial, follow the tutorial step by step on the line
https://www.cnblogs.com/husiyu/p/12394171.html

PS:

  1. Note that correspond to their version number (that is, the path that you have installed yourself) when configuring the "JAVA_HOME" Do not copy the brain
    such as C: \ Program Files \ Java \ jdk-13.0.2 ( I have here is the version number 13.0.2-the JDK
    2 Note pATH =% JAVA_HOME% \ bin ( bin directory) * here is inherent in the path in which to add, edit find the path of system variables exist inside the line

    3. Add the classpath

After the completion of all let's make sure JAVA_HOME configuration: cmd interface input echo% Java_Home%


Make sure that your JAVA_HOME final configuration points to the JDK, not the JRE.

Guess you like

Origin www.cnblogs.com/husiyu/p/12400587.html