How to Install the Java Software Development Kit (JDK)

Before you can create and modify Java programs, you’ll need the Java Software Development Kit. You can download the kit (also known as Java SDK or JDK) for free from Oracle as a single installer file, which makes installation quick and easy. Learn the best way to download and install the Java Software Development Kit on your Windows, macOS, or Linux system.
PART 1.
Step 1. Downloading the Java Software Development Kit

Navigate to
https://www.oracle.com/technetwork/java/javase/downloads/index.html. You can download a simple Java Software Development Kit (JDK) installer for Windows, macOS, or Linux directly from Oracle.
Step 2. Click the “Download” button beneath “JDK.” This will open a new page containing several download options.

Step 3. Scroll to the latest version of Java SE Development Kit. You should always use the latest stable version of the toolkit. There may be more than one version listed, so look closely at the release number.

  • For example, if you are presented with JDK 8u101 and 8u102, choose 8u102.

Step 4. Click “Accept License Agreement.” Before you can click the download link, you must accept the license agreement. The option is just beneath the JDK version number.

Step 5. Click the download link next to your operating system. Once you click the link, follow the prompts to select a save location on your computer and start the download.

Step 6. Install the JDK on your computer.

 
PART 2. Adding Environmental Variables to finishing up the Installation
Step 1. Press Win+X to launch the Power User menu. Now that the JDK is installed, you’ll need to tell Windows how to load it. A menu will appear at the bottom left area of the screen.

Step 2. Click “System.” A screen with your system specs will appear.

Step 3. Click the “Advanced System Settings” link. Now you’ll see the System Properties panel.

Step 4. Navigate to the “Advanced” tab. You’ll see a few different areas where you can adjust various system settings.
Click the “Environment Variables” button. This new dialog box displays two separate areas—one for User Variables (settings specific to your user account) and another for system-wide settings (System Variables)

Step 5. Double-click the “Path” variable under “System Variables.” Now you’ll add a new variable. Follow these instructions exactly, as there is no “undo” option

Step 6. Click “New” if you’re using Windows 10. This step only applies to Windows 10:

  • Type c:\Program Files\Java\jdk1.8.0_xx\bin (but replace the “8.0_xx” part with the version number you installed).
  • Click the “Move Up” button until the path you typed appears as the top of the list.
  • Click “OK.”


Step 7. Set the variable in earlier versions of Windows. Skip this step if you’re using Windows 10. You should see the “Edit System Variable” window. Make the following changes to the “Variable value” field only (don’t delete what’s there though):

  • Type C:\Program Files\Java\jdk1.8.0_xx\bin (but replace the “8.0_xx” with the correct version number) in FRONT of the other directories.
  • Add a semicolon (;) to the very end of what you just typed, just like this: C:\Program Files\Java\jdk1.8.0_xx\bin;
  • There should be no space before or after the semicolon, so the entire line should look something like this: C:\Program Files\Java\jdk1.8.0_2\bin;C:\Program Files\Intel\xxx
  • Click “OK.”


Step 8. Click “OK” until you’ve closed all open windows. The installation is complete.
 
Part 3. Checking whether the JDK installed correctly???
Step 1. Press Win+R to launch the Run box. Now you’ll check to make sure the JDK path is correct.
Step 2. Type cmd and press Enter. Now you’ll see a terminal window containing the command prompt.
 

Step 3. Type java –version and press Enter. The version of JDK you installed will now appear on the screen.

  • If either part of this command-prompt test does not produce results, you may need to load the new environment variables by rebooting the computer.


You Successfully Installed and Configured Java on your System!!!!
Now You can Start your Java Programming.

Leave a Comment

Your email address will not be published. Required fields are marked *