recently learning Java, about the configuration of Java environment variables, I would like to summarize their experience in this area, for your reference: Right-click My Computer---> Properties---> Advanced property settings---> Find environment variable Configuration under Advanced tab button to open the environment variable,1. Create a new environment variable value name java_home the corresponding value is the path to your JDK installation, such as the path of my JDK installation: D:\SoftFile\Java that way java_home: D:\SoftFile\Java2. Create a new variable, name it CLASSPATH, and its value is set to.; %java_home%lib;%java_home%lib\tools.jar;%java_home%lib\dt.jar Note: There is a ".;" in front of the value. Number, this cannot be omitted, otherwise it cannot be configured successfully 3. The last step, set the value of the Path variable, and add this%java_home%\bin;%java_home%\jre\bin after the original paht value, to refer to the Java_ that you just configured The value of the home variable these are configured, open the Command window, enter the command java-version or Java, if the configuration is successful, will display such information
Or: The version number of the current JDK is displayed
Okay, OK.
About the configuration of Java JDK environment variables