Your now ready to get start with Java programming from scratch. This lesson with start from the beginning by showing you how to install the Java Development Kit or JDK onto your laptop or computer. The JDK is a super set of the JRE, and contains everything that is in JRE, plus tools like the compilers and debuggers necessary for developing applets and applications.
Oracle bought Sun Mircosystems back in January of 2010 so we need to head over to Oracle website to download the JDK. Click on Oracle Java Download Page and you will see this at the top:
The current JDK version available is version 10 so let’s get that one. Click on the DOWNLOAD button and you will see the following information. You have to click on Accept License Agreement and then select your environment. I am running Windows on my laptop so I clicked on jdk-10.0.1_windows-x64_bin.exe .
A popup window will appear and just click on Save to save the executable package to your Downloads folder. The download may take a couple of minutes to fully download.
Double click on jdk-10.0.1_windows-x64_bin.exe in the Downloads folder.
A popup window will appear asking if you want to install Java SDK 10. Click Yes to start installation.
A popup window will welcoming you to the installation of Java SDK 10. Click Next to continue installation.
A popup window will ask about defaults for the installation of Java SDK 10. Accept defaults and click Next to continue installation.
While Java 10 is being configured, you will see the following popup window.
Another popup window will ask if you want to change the installation location for Java 10. I go with the default location so that is up to you if you want to change.
The popup will change to the following window letting you know the Java 10 installation process is in process.
After the Java 10 installation process is complete, the popup window will show Java JDK 10.0.1 was installed successfully.
The defualt installation folder for JDK 10 on my laptop was C:\Program Files\Java, but yours may be different. You can see the new jdk-10.0.1 folder that was created for the installation.
If you open a command window and cd to the new JDK folder, change to bin folder, and you can then verify the java version that was just installed.
This concludes Lesson 1 on installing the current JDK to your laptop or computer. Your now ready to move onto the next lesson.