Javac is not an internal or external command

Source: Internet
Author: User

Java beginner, after installing jdk1.8.0_45 This version of the JDK Path,classpath,java_home all set up. All methods have been tried, but in cmd input: Javac, always appears "javac is not internal or external command". It is very puzzling! Finally in the constant groping to solve the problem.

The resolution process is as follows:

1. Check that the installation jdk1.8.0_45 file has the following two folders under the selected path

2. Setting Environment variables

Right-click "My Computer", select "Properties", select "Advanced", click "Environment Variables"

Create a new three environment variable named Java_home, path, classpath, respectively

"Java_home" installs Jdk1.8.0_45 's JDK directory

C:\Program files\java\jdk1.8.0_45

Bin directory under "path" JDK

%java_home%\bin

There is a "." in front of the "classpath" note. There are two paths for each path ending with ";" Separated. Are all symbols in the English state

.%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

The author of the problem in the installation without notice, the root directory only the JDK does not have a JRE file. The JRE is the environment in which the Java program is running, so a title error has occurred. Reinstall the JDK1.8.0_45, and then configure the environment variables as you did in the previous steps.

Javac is not an internal or external command

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.