Compilers, JAVA, Programmimg Languages, Softwares, windows

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

1.PNG

Navigate to

http://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.

2.PNG

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.

3.PNG

  • 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.

4

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.

5.PNG

Step 6. Install the JDK on your computer.

4665__java_development_kit_1_28_5_15

 

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.

key

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

6

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

7

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)

8

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

9

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.”

10

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.”

11.PNG

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.

 

12

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.

13

You Successfully Installed and Configured Java on your System!!!!

Now You can Start your Java Programming.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s