If the installation is successful and the installation completes the first boot is successful and the second one is off, the reason is that there is no Java-configured environment. There are many errors in the method of preparing the Web, the test javac command will prompt you not to internal or external commands to find a correct tutorial. As below, reprinted from Baidu Experience: http://jingyan.baidu.com/article/1e5468f924210a484961b7f0.html
' JAVA ' is not an internal or external command, nor is it a program that can be run or a batch file solution similar.
Reason one: No jdk installed, only JRE installed
- 1
JDK1.7.0_60+JRE is complete, if the JDK is not installed, the cmd inside the input JAVAC will prompt "' JAVAC ' is not an internal or external command, is not a running program or batch file"
- 2
The workaround is to install the JDK
END
JDK and JRE installed, but configuration failed
If the JDK is installed, the normal cmd input javac must be successful. You will be prompted with the following information
Therefore, there is a problem with the environment configuration, so check three places, the first "Java_home"
The content of the Java_home is the JDK installation directory. Location:D:\Program Files (x86) \java\jdk1.7.0_60, and no semicolon behind
Second, check classpath, which is a call to a jar package. .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (preceded by a number and semicolon, and a semicolon at the end.)
Or can be written as ".; %java_home%\lib ", the same effect.
Third check if the "PATH" variable is correct
The path variable is simply the meaning of the bin directory of the JDK. %java_home%\bin;
If you already have the path command, add it later; %java_home%\bin;
- 5
There will be no problem if the above points are completed.
Tomcat Learning note-error log-the second boot after the installation of Tomcat (GO)--Javac is not an internal or external command--Configure the Java Environment tutorial