Java Development Environment configuration, java Development Environment
I. Glossary:
JDK: Java development kit (Java tool development kit)
JRE: java runtime envornment (Java runtime Environment)
2. precautions before installation:
View the computer system type, right-click computer, and choose Properties> View, for example:
3. Install JDK:
Step 1: Download the corresponding JDK version based on the information in the previous step (64-bit Windows 7 ).
(: Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
Step 2: Double-click xxx.exe to install JDK. You can also select the installation path)
Step 3: Under the selected installation directory: C: \ Program Files \ Java, JDK 1.8.0 _ 65 and jre1.8.0 _ 65 have been successfully installed.
Now let's try whether the Java environment has been installed successfully.
1. Open the Run window through Windows + R, and press cmd.
2. Click "OK" to enter the command line mode:
3. Press the "javac" command on the keyboard and press Enter. An internal command is not prompted.
4. Run the command cd C: \ Program Files \ Java \ jdk1.8.0 _ 65 \ bin and press enter to enter the bin directory for jdk installation.
5. Repeat the command "javac" to list a series of information.
6. Run the Java-version command to check the Java version.
Note: The Java environment has been successfully installed according to information 5 and 6, but why does it report an error in 3? This is because the javac command cannot be found in Windows because no environment variable is added. The following describes how to configure environment variables.
4. Configure environment variables:
Step 1: locate the environment variable configuration location
Computer> Properties> advanced system Settings> advanced> environment variables> system variables> double-click Path to add the variable value to the end. C: \ Program Files \ Java \ jdk1.8.0 _ 65 \ bin (jdk installation directory)
5. Verify that the Java command is successfully executed in any directory
Open cmd according to the above operation steps, and input the command "D:" And press enter, and press ENTER for "Java-version ".
The Java version information is displayed successfully, indicating that it has been completed! Now you can write hello world!