650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/F8/wKioL1TxiXux2MmlAADsKo36tzM571.jpg "title=" 1.jpg " alt= "Wkiol1txixux2mmlaadsko36tzm571.jpg"/>650) this.width=650; src= http://s3.51cto.com/wyfs02/M01/59/F9/ Wkiol1txidzsos_gaaeiftfhldu582.jpg "title=" 1.jpg "alt=" Wkiol1txidzsos_gaaeiftfhldu582.jpg "/>
We need to configure three environment variables:
1. Java_home The environment variable represents the root directory of the JDK installation. For example, the above installation process Java_home value should be:C:\Java\jdk1.7.0_72
This path must be configured, followed by the path path, and future Eclipse integration development will be used to read the value of the variable to determine the path of the JDK .
Note: When configuring variables, try to copy and paste, do not have to write manually, it is easy to write wrong.
2 , path in add bin directory where the path is located. We need to refer to the java_home %java_home%\bin;
when we compile the Java file and run The class file, we can enter the Javac directly in the DOS window . ,Java to start the appropriate tool, the operating system is based on this path to find these tools. So this path must be configured.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/FA/wKioL1TxijiRHEEbAAG8d5LqK4M413.jpg "title=" 1.jpg " alt= "Wkiol1txijirheebaag8d5lqk4m413.jpg"/>
Note: in path There are many other programs added in the path, do not break into other paths when adding our own paths. The different paths are separated by semicolons in English.
3,classPath environment variable: generally only need to configure as .; that is, a point in English and a semicolon in English. a point represents the search for a class file to run under the current path .
Note: All punctuation must be in English. This environment variable can be configured without configuration, and the default is to look for the class file to run in the current directory .
4 , verify that the environment variable is configured successfully.
a Open Command Line window input Javac then enter. The output is as follows and is configured correctly.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/FA/wKioL1TxipiRrU6fAAHjkptt2Kw716.jpg "title=" 1.jpg " alt= "Wkiol1txipirru6faahjkptt2kw716.jpg"/>
b input Java then enter. The output is as follows and is configured correctly.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/FA/wKioL1TxiyjTO9xpAAFb85qYp7A182.jpg "title=" 1.jpg " alt= "Wkiol1txiyjto9xpaafb85qyp7a182.jpg"/>
This article is from the "Li Zhenhu" blog, make sure to keep this source http://zhenchao125.blog.51cto.com/8241616/1616029
Java environment variable configuration diagram and principle