Java basics 1 Environment configuration, java basics 1
1. Download JDK: http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Install JDK: Click Next to complete. Note: The default installation path is C: \ Program Files \ Java. to customize the path, place the JDK and JRE paths in the same path with the same drive letter. For example, D: \ Java \ jdk1.7.0 _ 17, D: \ Java \ jre7
3. JDK Configuration:
Purpose: To identify Java commands under the DOS command.
Configuration steps:
Right-click my computer, select Properties, select the Advanced tab, and click environment variables. On the displayed page, select system variables ], click Add to create a variable named JAVA_HOME with the value C: \ Program Files \ Java \ jdk1.7.0 _ 17. Then, locate the path variable under the system variable, add the path of the binfile under JDK installation to the variable path, for example, % JAVA_HOME % \ bin. Click OK.
4. Test whether JDK is successfully installed:
You can open the command line interface and enter java or javac to check whether it can be identified. If it is a Windows 7 7 operating system, open it as an administrator.
The successful interface is as follows: