Installation:
Download the Java SE installer from oracal for installation. The installation process is not described in detail again, I believe you can complete.
To configure environment variables:
System variables, environment variables, advanced system settings
Java_home: Add entry: Java installation path, here my path is (D:\Java\jdk1.8.0_25)
Path: Modify Entry: Add a path at the first party (D:\Java\jdk1.8.0_25\bin; Note: Remember to add a semicolon to separate this path from the other paths
CLASSPATH: New entry: Add path (.; D:\Java\jdk1.8.0_25\lib) Note: Add a semicolon before the path
Confirm Complete
Test:
Go to cmd
Enter both Java and Javac, if prompted to indicate that the configuration is correct.
Note: Because I once passed, so it is not clear that the incorrect situation, in view of the Java world is not familiar with, decided to pass here. After some experience, we will be back to complete here.
Java Development Environment Building