Tomcat Learning note-error log-the second boot after the installation of Tomcat--Javac is not an internal or external command--Configure the Java Environment tutorial

Source: Internet
Author: User

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. 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. 2

      The workaround is to install the JDK

      END
JDK and JRE installed, but configuration failed
    1. If the JDK is installed, the normal cmd input javac must be successful. You will be prompted with the following information

    2. 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

    3. 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.

    4. 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. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.