22.6 C
Texas

How to install JDK on Windows 10/Server 2019

Hello! Java Development Kit (JDK) is a software that provides development tools for creating programs in Java. Additionally, it can be installed on a local computer or a network drive. This platform facilitates the components for code development. Well, currently JDK, is on version 14. However, in this post, we will see how to install version 11 since I consider it more stable. Also, it is a Long Term Support (LTS) version so it includes extended technical support. Well, today we will see how to install JDK in Windows 10/Server 2019.

How to download Java JDK 11 (LTS)

In the first place, go to the download section on the Oracle website. As mentioned, please scroll down and select the corresponding JDK 11 (LTS) download.

Download JDK version 11 LTS
Download JDK version 11 LTS

At this point, a clarification must be made. This software is free, the only limitation imposed by Oracle is that you must open an account. To do so, you only need to provide an email account. Once the account is verified, the download will start.

Enter your account information to start the download.

After the download is complete, please click on the installer to begin the process. This is a very simple process, just click Next on the first two screens to start it.

- Advertisement -

After this, the wizard will start copying the files.

After a few minutes, the installation will be complete. Please press Close to exit the wizard.

Press Close, to exit the assistant.

Configuring SDK in Windows 10/Server 2019.

Well, now SDK 11 is installed in the system. However, some modifications are necessary for its proper functioning. In the first place, it is necessary to edit the environment variables. The reason for this is that the JDK installer does not add the folder where it is installed to the set of paths where Windows look for its executable programs. Consequently, the operating system will not be able to find the JDK components. So we will have to do this configuration manually. But don’t worry, we’ll tell you how to do it. The first thing to do is to press the Win+R combination and run the next line:

sysdm.cpl
Enter the system properties.

Then, from the Advanced tab, click on Environment Variables.

Edit environment variables

Then click on Path and then on Edit.

Please edit the Path variable.

A window will immediately pop up. Please click on Edit Text.

Edit the text of the Path

Copy the exact address from the installation directory

At this point, it is imperative to know the installation route of JDK. To do this, press the Win+E combination and locate the Program Files folder. Specifically, the path is as follows:

C:\Program Files\Java\jdk-11.0.7\bin

Please note that this may change depending on the installation path chosen and the version of SDK installed. However, the quickest way is to get the installation directory and copy the address directly from the folder’s URL. Please note that this may change depending on the installation path chosen and the version of SDK installed. However, the quickest way is to get the installation directory and copy the address directly from the folder’s URL. With this intention, right-click on the URL and then on Copy Address.

Copy the address of the program’s installation folder.

Please continue with the installation

We return to the point of editing the text of the Path variable. Please note that you should not delete the current variable. In fact, you only have to add the previously copied address. Attention! You have to be very careful to add the variable after the ;

Add the variable.

Back to the previous screen, check the modification. Press OK to continue

Then close all the windows by pressing OK.

Press OK to continue.
Press OK to continue.

Checking the operation of the SDK.

To verify that the software has been successfully installed please open a Command Prompt. Once there, run the following command:

java -version
Java SDK correctly installed and configured on Windows 10/Server 2019.

At the end of the day, we saw how to install JDK in Windows 10/Server 2019. From now on you can use this tool. All right this is it for now. Before I go I invite you to see our post about booting into safe mode on Windows Server 2019/2016.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article