JAVA environment variable configuration

1, the new system in a JAVA_HOME environment variable, the upper directory to copy the jdk bin JAVA_HOME as follows:



2, find the directory path in system variables, as follows:



3, into the JAVA_HOME configuration, as follows :( must add% JAVA_HOME before and after, and back to keep the bin directory, environment variables configured in this way, and better management))





The second configuration environment variable method is relatively simple and intuitive point:

1, directly in the directory path, the jdk bin directory copy into it, as follows:


Configuration environment variable this way if more, it seemed more chaotic, hard to manage.

After configuring, you can open the cmd command line, type javac, occurs if the following figure is to configure a success:




Reproduced in: https: //my.oschina.net/u/936286/blog/542019

Guess you like

Origin blog.csdn.net/weixin_34130389/article/details/92025732