javac command message is not an internal or external command

Such problems have mentioned many sites or micro-blog, but many no configuration details will be explained.


I also think, like many people on java_home, path, classpath three variables are configured, but the Times runs javac not an internal or external command in dos,


Then I like a lot of people find a lot of information, and finally bloom love street microblogging found the answer, which I did not pay attention to punctuation when configuring in the configuration java_home final with a semicolon.


The following excerpt is part of


Usually there are two problems, one is the wrong path, on the other hand is a path around the right punctuation (English half-width):

. CLASSPATH;% JAVA_HOME% \ lib; (Note: The preceding dots, semicolons, semicolon later)

JAVA_HOME C: \ Program Files \ Java \ jdk1.6.0_17 (Note: There was no sign before and after)

Path% JAVA_HOME% \ bin; (Note: write unsigned before the top of the original variable value, after the semicolon)

 

 

By comparison, the original path behind his JAVA_HOME more semicolon, re-test the modified successfully.


Guess you like

Origin blog.csdn.net/N_E_W_J_A_V_A/article/details/26820745