The Java Development Kit (JDK) is a depiction of Java Platform, Standard Edition, Enterprise Edition, or Micro Edition platforms released by Oracle Corporation as a consequence of a binary product to finding out at Java developers on Solaris, Linux, macOS or Windows.
Here we are going to discuss how to install and set up Java JDK 16 on Windows 10. Java JDK 16 is the latest version of the Java SE Development Kit.
Also Read: Top 10 Java Libraries You Must Know in 2021
How to Download Java JDK on Windows 10
Open any browser, search for download Java JDK. Open the link form oracle.com and download Java SE Development Kit 16 Windows x64 Installer file.
Now click on the download link and Accept License Agreement and click on jdk-16_windows-x64_bin.exe
Note:- If it redirects you to the Oracle account creation, simply create an Oracle account in order to download the Java JDK installer file. Account creation is completely free.
How to Install Java JDK on Windows 10
In this section, we’ll discuss how to install Java JDK 16 on Windows 10. Here we also included a video tutorial, if you find it difficult to follow the steps mentioned below, you can watch it.
After the download has been completed follows these simple steps to install and setup Java JDK 16 on Windows 10.
Step 1: Open the Java JDK 16 exe file and it will open the installation wizard simply click on Next.
Step 2: On the next window, you will get the option to change the installation location. You can change your installation location but I will suggest you keep it to default and click on Next. After that Java JDK 16 will be installed on your Windows 10.
Step 3: The installation process will take some time, so wait until the installation process completes. After the installation process completed just click on “Closed“.
How to Setup Java JDK on Windows 10
By just downloading and installing Java JDK 16, Java will not work. To run and compile Java code, we need to set the environment variable for Java bin folder.
To set up Java JDK 16 environment variable follow these steps:
Step 1: Open C Drive > Program Files folder and look for Java folder and open it.
Step 2: Inside the Java folder you will find a jdk-16 folder, open it and open the bin folder, copy the path of bin folder.
Note:- Now you have to set the environment variable.
Step 3: For that Go to Control Panel > System and Security > System > Advanced System Setting > Environment Variables
Step 4: Under the System variable, you will find “PATH” just select it and click on edit. Now click on New and add the bin folder location, after that click on “OK“.
Now to check whether Java is successfully set up or not, open Command Prompt and type this two command “java -version” and “javac“.
By using ‘java -version‘ command, you can check the Java JDK version and ‘javac‘ command will help you to understand whether the Java compiler is set up or not.
javac is a compiler that helps you to compile your java file. If you find a bunch of statements in the command prompt that means Java JDK 16 is fully set up on your windows system.
To start with Java development you have to use Eclipse IDE. It is one of the most popular IDE (Integrated Development Environment) for Java Development. Eclipse IDE will help you to write and run the Java program.
Hope we helped you to install and setup Java on your Windows 10 computer. If you have any queries and want to know anything related to Java JDK then please leave your comment and let us know.