I will show you how to download Java (JDK) from Oracle site and install it.
With a web browserhttp://www.oracle.com/technetwork/java/javase/downloads/index.htmlVisit the site of.
Click the "JDK DOWNLOAD" icon on the screen shown in Fig.
There is an option to agree on the license terms "Oracle Binary Code License Agreement for Java SE" on the screen in Figure 1.You can download it by clicking the option (radio button) of "Accept License Agreement".
If you accept the license terms, the message "you may now download this software." Will appear and you will be able to download it.
You can download JDK (Java Development Kit).
If you are using the 32 bit version of the Windows OS, please download "Windows x86", if you are using the 64 bit version download "Windows x64".
Double-click the icon of the downloaded program to execute it. The installation wizard as shown in Figure 4 starts.
A screen for selecting the installation destination folder and files to be installed is displayed.We will leave the default setting here.Press the "Next" button.
Installation will be done.Next, we will proceed to install JRE (Java Runtime Environment).Click "Next" button.
Installation is completed.Click "Close" button to exit.
After installing, set two environment variables to use the JDK.
From the "Start" menu, select "Control Panel" - "System". On the "System Properties" screen, select "Advanced System Settings" and click the "Environment Variables" button in the "Advanced Settings" tab.
On the "Environment Variable" screen, create an item called "JAVA_HOME" in "User Variable".An underscore "_" is required between JAVA and HOME.Also, all lettersHalf size capital lettersPlease.
The variable name contains the name of the folder where the JDK was installed.
Then select "Path" from "System environment variable" and press "Edit" button.
Enter the character string ";% JAVA_HOME% \ bin" at the end of the character string described in "Variable value". A semicolon ";" is required at the beginning of the input character string.
When the above settings are completed, click the "OK" button to close all the windows related to setting environment variables.
We test whether Java configuration is completed correctly.
From the start menu, select "Run with ..." and enter "cmd".
The console screen as shown in Figure 12 opens.
Check the operation of the java command.Enter as follows.
Make sure that it is the same as the version of Java you installed.
java version "1.8.0_11" Java(TM) SE Runtime Environment (build 1.8.0_11-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)
Next, check the operation of the javac command.Enter as follows.
Also verify that the version is correct.
Please close this console screen after the test.
Please match the version "1.8.0_11" described on this page to the version name of Java you actually install.
Likewise, replace the folder name "jdk1.8.0_11" described on this page appropriately and read.
Replace "1.8.0 _ 11" in the captured image with the version name of Java you are installing.
;%JAVA_HOME%\bindescribed in Path setting is
;C:\Program Files\Java\jdk1.8.0_11\binPlease try writing it directly.
When using Java 9, additional response is required.[More ...]