In this post, we will go through steps involved to download and install Java JDK. First of all, you can download the self-installing exe from the official website. ( http://www.oracle.com/technetwork/java/javase/downloads/index.html )
If you save the self-installing executable file to disk without running it from the download page at the web site, note the file size specified on the download page.
Running the JDK Installer
After the download has completed, verify that you have downloaded the complete file. Follow the instructions the installer provides. When finished with the installation, you can delete the downloaded file to recover disk space.
You must have administrative permissions in order to install the JDK on Microsoft Windows. Below you can find screen-to-screen installing the JDK.
Select optional features to install.
These two aspects of the Java Platform are the Java Run time Environment (JRE) and the Java Development Kit (JDK).
The JRE provides the operating system the means to run Java programs.
The JDK is a collection of tools used by a programmer to create Java applications.The JDK includes a compiler that makes Java source code readable by your computer.
The file jdk-8version-windows-i586-i.exe is the JDK installer for 32-bit systems. The file jdk-8version-windows-x64.exe is the JDK installer for 64-bit systems. If you downloaded either file instead of running it directly from the web site, double-click the installer’s icon.
Set JAVA_HOME variable
Updating the PATH Environment Variable
If you do not set the PATH variable, you need to specify the full path to the executable file every time you run it.
It is useful to set the PATH variable permanently so it will persist after rebooting.
To set the PATH variable permanently, add the full path of the JDK directory to the PATH variable. Set the PATH variable as follows on Microsoft Windows:
- Click Start, then Control Panel, then System.
- Click Advanced, then Environment Variables.
- Add the location of the bin folder of the JDK installation to the PATH variable in System Variables.