Install JDK on Microsoft Windows

Step 1: Download and Install Java Development Kit (JDK)

The very first step is to download the Oracle Java Development Kit (JDK) from the Official Oracle Website. For that, Head over to the Official Website.

 

You need to identify your system specifications to choose the Product/file description. The website will contain the latest version for your corresponding system. For Windows, we’ll be downloading the latest x64 Installer of Java SE Development Kit 18. After the download is complete, proceed to install the JDK by following the bootstrapped steps.

 

Step 2: Configure Environment Variables

After the installation is complete, we have to configure environment variables to notify the system about the directory in which JDK files are located. Proceed to C:\Program Files\Java\jdk-{YOUR_JDK_VERSION}\bin (replace {-} with your JDK version)

 

To set the Environment Variables, you need to search Environment Variables in the Task Bar and click on “Edit the system environment variables”.

 

Under the Advanced section, Click on “Environment Variables”.

 

Under System variables, select the “Path” variable and click on “Edit”. Click on “New” then paste the Path Address i.e. C:\Program Files\Java\jdk-{YOUR_JDK_VERSION}\bin. Click on “OK”.

 

Now, in the Environment Variables dialogue, under System variables, click on “New” and then under Variable name: JAVA_HOME and Variable value: paste address i.e. C:\Program Files\Java\jdk-{YOUR_JDK_VERSION}. Click on OK => OK => OK.

 

Step 3: Check the Java Version

Open Command Prompt and enter the following commands

java -version
javac -version

 

Download and Install Java Development Kit (JDK) on Windows, Mac, and Linux

Setting up a Suitable Development Environment is necessary before one can begin creating Android Applications. It makes it easier for developers to use the tools required to create any Application and ensures that all Operations or Processes run smoothly. Download and Install JDK in order to create Android Application Source Files using the Java or Kotlin Programming Language. The system will execute the code using a set of Libraries and Compilers. JDK, JRE, and JVM should not be confused with one another, for more Differences between JDK, JRE, and JVM. This article describes the step-by-step process for installing and configuring the JDK on the 3 most popular Computer Operating Systems in order to begin the process of developing Android Applications.

Similar Reads

Java JDK Download

The JDK can be installed on the following Platforms:...

Install JDK on Microsoft Windows

Step 1: Download and Install Java Development Kit (JDK)...

Install JDK on Linux

Step 1: Download and Install Oracle Java Development Kit (JDK)...

Install JDK on MacOS

Step 1: Download and Install Oracle Java Development Kit (JDK)...

Contact Us