Java configuration environment variable when something easily forgotten


% XX% XX is a reference to a percent sign in a good environment variable settings before
each change once the environment variable on the re-opened once CMD
Until now own specifications configuration environment variable is:
% JAVA_HOME% = XXX \ XXX \ XX \ (decompression directory without bin filename)
% M2_HOME% = xxx \ xxx \ xx \ (unzipped without bin file name)
and then under the Path directory: xxx \ xxx \ xxx \ xxx :% JAVA_HOME% \ bin;% M2_HOME% \ bin

CMD command: echo% JAVA_HOME% inspection can not reach their own configuration directory


There are today using someone else previously used to configure the environment when not want to use his java installation directory is his installation of JDK 1.8

I want to use the results of the 1.7 JAVA_HOME changed my installation directory set his installation directory are deleted when the results of running java is still there  

Can not find XXX \ XXX \ XX \ what file is viewed with echo my address, very depressed

Finally, I deleted the Path variable JAVA_HOME directory on with java are also cleaned up once again with the JAVA_HOME 

That Well

Still do not know why depressed ..

Published 13 original articles · won praise 1 · views 1508

Guess you like

Origin blog.csdn.net/gaoyang426/article/details/70163070