Java 64-bit environment variable configuration in Windows 7: javac is neither an internal command or an external command, nor a program or batch file that can be run ., Windows7java64

Source: Internet
Author: User

Java 64-bit environment variable configuration in Windows 7: javac is neither an internal command or an external command, nor a program or batch file that can be run ., Windows7java64

After JDK (Java Developement Kits) is installed according to the default settings, the default path is C: \ Program Files \ Java \ jdk1.8.0 _ 05_x64.

Then, configure the environment variables: "computer", right-click "properties", "Advanced System settings", "advanced", and "environment variables" to open the environment variable settings window.

Then, add the following "system environment variables" in order ":

1. variable name: JAVA_HOME

Variable value: C: \ Program Files \ Java \ jdk1.6.0 _ 26

2. variable name: CLASSPATH
Variable value: C: \ Program Files \ Java \ jdk1.8.0 _ 05_x64 \ lib \ dt. jar; C: \ Program Files \ Java \ jdk1.8.0 _ 05_x64, lib \ tools. jar; (Note the semicolon)

3. Double-click the "PATH" variable and add:; C: \ Program Files \ Java \ jdk1.6.0 _ 26 \ bin after the variable value (note the semicolon ).

Close all cmd windows. Re-open a java command and javac command.

Technorati Tag: Java runtimer enviroment setting in Windows7 Ultimate 64bit.
I configured the jdk environment variable to input the javac old variable in DOS. "javac is neither an internal or external command, nor a program or a batch file"

Your path is:
C: \ Program Files \ Intel \ OpenCL SDK \ 2.0 \ bin \ x86E: D: \ jdk \ bin;
Do you want to change it:
C: \ Program Files \ Intel \ OpenCL SDK \ 2.0 \ bin \ x86; D: \ jdk \ bin;

The jdk environment variable does not take effect after it is set. javac prompts "it is not an internal or external command or a program file that can be run"

You have many configuration errors, not only path errors, but also classpath errors.
The correct configuration is in the system variables:
JAVA_HOME
C: \ Program Files \ Java \ jdk1.7.0 _ 21

Path
% JAVA_HOME % \ bin; C: \ Windows \ system32; C: \ Windows \ System32 \ Wbem;

CLASSPATH
.; % JAVA_HOME % \ lib \ tools. jar; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ jre \ lib \ rt. jar;

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.