Installing JDK in Windows, Javac is not an internal or external command and is not a running program

Source: Internet
Author: User

After many experiments, we finally solved the error prompt in the DOS window to verify that the JDK was installed successfully-----Javac is not an internal or external command or a running program

The first thing to make clear is that in the new Java_home, the Classpath file is created in the system variable, not in the user variable.

Installation path----JDK in JAVA_HOME:E:\AUTMULU\JAVA\JDK

CLASSPATH:.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar;%java_home%\bin; -----is the main place where "Javac is not an internal or external command or a program that can be run"

In path: Just need this one on the line, no more to add other directories;%java_home%\bin;

After the installation succeeds, in the DOS window to verify whether the installation was successful, enter the command Java javac java-version

Java and Javac command options appear----instructions are successful.

Java-version Verifying version information

It is recommended that all three commands prove successful in order to avoid any subsequent unnecessary hassles.

Installing JDK in Windows, Javac is not an internal or external command and is not a running program

Related Article

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.