Win7 command window prompts "javac is not an internal or external command" how to solve?

  

After a user configures the environment variable in Win7 system and enters the javac command in the command prompt box, a prompt appears: "“‘javac’ is not an internal or external command, nor is it a runnable program or batch. File & rdquo;, what is going on? Don't worry, the following small series will share with you the reason and solution for the Win7 command window prompt "javac is not an internal or external command".

Reason one: jdk is not installed, only jre

jdk1.7.0_60+jre is installed. If jdk is not installed, enter javac in cmd and it will prompt “ld”; ‘javac’ is not an internal or external command, nor a runnable program or batch file”.

Solution: Install jdk can be.

Reason 2: jdk and jre are installed, but the configuration fails

If jdk is installed, the javac input under normal cmd will be successful, and the following information will be displayed;

So, there is a problem with the environment configuration, we can check the following three places:

First, & rdquo; JAVA_HOME”

The content of JAVA_HOME is the jdk installation directory. The small series installation location: D: \\ Program Files (x86) \\ Java \\ jdk1.7.0_60, behind and without semicolon;

Second, check the CLASSPATH, this package is a jar Call. .;%JAVA_HOME%\\lib\\dt.jar;%JAVA_HOME%\\lib\\tools.jar; (front a little number and semicolon, followed by a semicolon at the end.) Or can be written as “.;%JAVA_HOME%\\lib; & rdquo; as shown, the same effect;

third, inspection & ldquo; PATH & ldquo; variables properly

PATH variable very simple means jdk bin directory. % JAVA_HOME% \\ bin;

completed more than a few would be no problem.

About the Win7 command window prompts "javac is not an internal or external command" solution to share with you here, there are friends who encounter this problem, you can follow the tutorial operation.

Copyright © Windows knowledge All Rights Reserved