The Java environment variable settings

Procedure Java environment variables
1. Download jdk installation files
this easy, degree of your mother on their own, where bloggers also released the official java link

2. Install
Double-click the downloaded exe file directly to the next step, the middle can choose the installation directory or something.

3. Set java environment variables
right-click My Computer] - [Properties] - [Advanced] - [Environment Variables]

New System Variable] [JAVA_HOME
variable names: [JAVA_HOME]

Variable values: [C: \ Program Files \ Java \ jdk1.7.0_51] Special Note: my jdk installed in this location C: \ Program Files \ Java \ jdk1.7.0_51 so we fill this, your jdk installation in what position to fill what!

New System Variable CLASSPATH] [
variable name: CLASSPATH []

Variable value: Special attention [;% JAVA_HOME% \ lib \ dt.jar;;% JAVA_HOME% \ lib \ tools.jar.]: Do not forget the foremost point a citation number!

Find [PATH] system variable
variable names: [PATH]

Variable values: [% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin;] Special Note: If you have a system variable path, will have to finally add in the variables, separated by the English title!

4. Verify that the installation was successful
found in the windows Start menu, shortcut keys or directly [WIN + R], enter cmd, dos window pop-up windows to enter java -version []. If prompted java version information, the installation is successful, if the command prompt is not found, will have to repeat the steps from Step 3, or double-check where there is a setting error.

Thumbs up
1 ----------------
Disclaimer: This article is the original article CSDN bloggers "Sir_fish", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/Sir_fish/article/details/86696431

Published an original article · won praise 1 · views 945

Guess you like

Origin blog.csdn.net/wangli80023/article/details/104511116