How to Install the Java Development Kit on Windows 10

Download and install the Java Development Kit

  1. Download and install the latest Java Development Kit from: https://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. At the time of this writing, I downloaded and installed jdk-13.0.1_windows-x64_bin.exe
  3. And accepted all defaults during the installation
  4. A reboot was not required

Add the Java bin location to the Windows path

  1. Control Panel
  2. System and Security
  3. System
  4. Advanced System Settings
  5. Advanced Tab
  6. Environment Variables
  7. System Variables
  8. Find and select Path
  9. Edit
  10. New
  11. Copy and paste the the Java bin path, i.e.: C:\Program Files\Java\jdk-13.0.1\bin
  12. OK

Create a new System Variable

  1. New
  2. Variable name: JAVA_HOME
  3. Variable value: C:\Program Files\Java\jdk-13.0.1
  4. OK
  5. Sign-out/Sign-in
This image has an empty alt attribute; its file name is image-1.png

Verify Java is installed successfully and accessible

  1. Launch a CMD prompt or PowerShell prompt
  2. javac -version
  3. java –version
This image has an empty alt attribute; its file name is image-3.png

Potential Gotchas

Problem Solution
javac -version returns an error Find and remove previous version(s) of Java
java –version returns an error Find and remove previous version(s) of Java

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 )

Facebook photo

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

Connecting to %s

How to Install the Java Development Kit on Windows 10

Download and install the Java Development Kit

  1. Download and install the latest Java Development Kit from: https://www.oracle.com/technetwork/java/javase/downloads/index.html
  2. At the time of this writing, I downloaded and installed jdk-13.0.1_windows-x64_bin.exe
  3. And accepted all defaults during the installation
  4. A reboot was not required

Add the Java bin location to the Windows path

  1. Control Panel
  2. System and Security
  3. System
  4. Advanced System Settings
  5. Advanced Tab
  6. Environment Variables
  7. System Variables
  8. Find and select Path
  9. Edit
  10. New
  11. Copy and paste the the Java bin path, i.e.: C:\Program Files\Java\jdk-13.0.1\bin
  12. OK

Create a new System Variable

  1. New
  2. Variable name: JAVA_HOME
  3. Variable value: C:\Program Files\Java\jdk-13.0.1
  4. OK
  5. Sign-out/Sign-in
This image has an empty alt attribute; its file name is image-1.png

Verify Java is installed successfully and accessible

  1. Launch a CMD prompt or PowerShell prompt
  2. javac -version
  3. java –version
This image has an empty alt attribute; its file name is image-3.png

Potential Gotchas

Problem Solution
javac -version returns an error Find and remove previous version(s) of Java
java –version returns an error Find and remove previous version(s) of Java

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 )

Facebook photo

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

Connecting to %s