Install jdk For Windows and jdk For Windows
1. Download JDK
View latest: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Select the appropriate JDK for download Based on the Operating System
2. Run the JDK Installer
3. Select the installation directory
4. Click "Next" to confirm the installation.
5. Set JAVA environment variables
Right-click the computer and choose Properties> advanced system Settings> environment variables.
Create environment variable
JAVA_HOME = C: \ Program Files \ Java \ jdk1.8.0 _ 40
CLASSPATH =.; % JAVA_HOME % \ lib
Modify the PATH environment variable and add % JAVA_HOME % \ bin to the path environment variable.
6. Verify that the installation is successful.
In start-run, Enter cmd and press Enter. The command box is displayed.
Enter java-version
If the JKD version is installed, the installation is successful.