First, right-click My Computer and click "Properties" in the drop-down menu
Secondly, click "Advanced" on the left System Settings"
# (Related video tutorial sharing: java online video)
Click "Environment Variables" in the new dialog box
Click "New"
The variable name is "JAVA_HOME", and the variable value is the path when installing jdk
Next find "CLASSPATH", if not, click "New"
The variable name is "CLASSPATH" variable value" .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;”
Find the Path, edit it, and replace it with its original Add ";%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;" before the variable value. The method of adding is this: C:Variable value
Finally, Just click OK.
Recommended related article tutorials: Introduction to java programming
The above is the detailed content of How to configure java environment variables. For more information, please follow other related articles on the PHP Chinese website!