How To Download and Install JDK 1
How To Download and Install JDK 1
6
on Windows
3 minute read
In this guide, I’m going to show you exactly how to download and install JDK 1.6 on
Windows.
(Step-by-step)
Check following post if you are looking to download and install JDK 1.5, JDK
1.7, JDK 1.8, JDK 9, JDK 10 or JDK 11.
What is a JDK?
When you want to create a Java application you need a Java Development Kit (JDK). It
contains tools that allow you to develop and run your Java program.
One of these development tools is a compiler (javac) that converts Java source code
( .java files) into Java bytecode ( .class files). Other tools include an archiver (jar) and a
documentation generator (javadoc).
The JDK also contains a Java Runtime Environment (JRE) that is able to run compiled
Java code. To do this the JRE uses Java libraries and a Java Virtual Machine (JVM) that
executes the compiled Java code.
Scroll to the bottom of the page and look for the Java Archive section.
Verify your windows bit version and click on the corresponding link:
On Windows 10 a pop-up window will appear: The app you're trying to install isn't a
verified app from the Store
Select the Public JRE dropdown and click on This feature will not be available. as shown
below.
Click Next to start the installation.
Click on New… .
Enter “JAVA_HOME” as variable name. Enter the [JAVA_INSTALL_DIR] as variable value.
Click OK .
Next, we need to configure the PATH environment variable so we can run Java from a
command prompt.
Click OK .
Click OK once more to close the environment variables window.
If a Path variable does not exist you need to create it. Use “Path” as variable name and
“%JAVA_HOME%\bin” as variable value.
On Windows 7 you cannot add extra values for an existing Path variable. You need to
append “;%JAVA_HOME%\bin” at the end of the variable value instead.
Now take the next step and write your first Java program.
Thanks!