Configuring the Java environment variables WIn7 system

 

   Give official website Download: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

 

 

 

 

  1. First, look at your downloaded oracle official website jdk file original name: JDK file back just downloaded name marked x64 on behalf of a 64-bit JDK, if not marked, you are 32-bit JDK (must be guaranteed to file official website to download Formerly known as Oh); of course, this is just the official website to download the file, not including the file name manually change, such as: dk-8u102-windows-i586 is what 32-bit or 64-bit is not marked x64, it means that 32-bit?. 64 are later identified with x64; is 32 bits with no;

2. Install the JDK, pay attention to change the installation directory. (This is my directory structure)

 

3. With environment variables (the purpose of)

Into the system (the shortcut key is win + pause), then Advanced System Settings

 

 

Into the environment configuration

 

 Variable names generally written JAVA_HOME, variable values ​​to fill in the bin directory of the java installation directory (pictured above), can be determined

 

 

 To find the path, click Edit, shortcut keys Ctrl + end, so that the mouse cursor to the last face, and then add an English ";" in the end, add% JAVA_HOME% \ bin (ps: Why, equivalent to a reference in the path here just the new java JAVA_HOME path, because the path to store a lot of path execution path of development tools here, later want to change is not easy to find, why they lead JAVA_HOME, since as long as change JAVA_HOME on it)

 

 

With over here, we win + R shortcut to a DOS window to look at the command java -version version number, if it means the following figure with success, to mention a mouth here: with the global environment is to be able to access the computer java . Thank you

 

 

Guess you like

Origin www.cnblogs.com/gongwangwang/p/11234964.html