In this curt tutorial, we're going to take a close look at how to install Java on Windows 10.

We'll first starting time with a little insight into how to download Java. And then, nosotros'll explicate how to install it on Windows 10. Then, nosotros're going to encounter how to properly set JAVA_HOME environs variable.

Lastly, nosotros'll highlight different ways to check Java and JDK versions on Windows 10.

Then, let's get started

Download Java for Windows ten

In this section, we're going to cover in-depth all the steps required to download Java for Windows x.

As a matter of fact, downloading Java is a easy. Information technology's only a matter of a few clicks and elementary sometime steps.

First, we need to visit the official Oracle download page and choose the right release for the Java SE Platform.

At this signal in time, the latest version is Java SE sixteen.0.i.

Secondarily, nosotros need to click on the JDK Download push:

download Java Windows 10 step 1

Bear in listen that Oracle has dropped the support for 32 bit systems. As a upshot, nosotros tin use Coffee SE only in 64 bit machines.

For instance, Oracle offers two options to install Java on Windows: through a .nix file and a .exe executable file.

Side by side upwards, let's choose the Windows x64 Installer selection:

download Java Windows 10 step 2

And so, nosotros have to take the Oracle Engineering science Network License Agreement for Oracle Java SE to proceed to the adjacent step:

download Java Windows 10 step 3

Lastly, a uncomplicated click on the download push button volition do the job.

Piece of cake, correct?

Install Java on Windows x

Now that nosotros download Java for Windows 10, let's see how to install it. Basically, the procedure of installing Coffee on Windows 10 is pretty easy and simple.

In general, we don't demand to modify anything during the installation, we can get with the default settings and follow the suggested instructions.

Firstly, we need to double click on the downloaded installer file to start the installation process:

Install Java Windows 10 step 1

Secondarily, we click Next to keep:

Install Java Windows 10 step 2

Note that, "C:\Program Files\Java\" is the default Coffee installation folder! However, we can always change it if we want that.

Then, we keep hitting Next until the installation is complete:

Install Java Windows 10 step 3

Finally, nosotros close the installer window once the installation of JDK is complete on our Windows 10.

Set Java Path in Windows 10

At present that nosotros known how to install Coffee on Windows 10, it's time to go along to the next step.

In this curt chapter, we're going to dive deep into how to fix JAVA_HOME surround variable on Windows 10. Please annotation that, JAVA_HOME should point to a JDK folder not JRE.

The basic idea behind setting the Java Path is to make all the Java commands like java, javac… accessible from everywhere. That fashion, nosotros can run Java programs from anywhere.

First, let'southward open the Advanced Arrangement Settings. To do that, nosotros just need to press Windows key + Suspension Key. Alternatively, we can type View advanced organization settings in the search box.

One time the System Properties window is opened, we click on Surround Variables:

Set up Java Path on Windows 10 step 1

Secondarily, we click on New push button to create a new Organization variable with JAVA_HOME equally name and the path to the JDK directory equally value:

Set up Java Path on Windows 10 step 2

As nosotros can run into, the JAVA_HOME surround variable points to the JDK folder which C:\Programme Files\Coffee\jdk-16.0.1 is in our case.

Set up Java Path on Windows 10 step 3

Side by side, we need to update the Path variable by adding a new entry for %JAVA_HOME\bin%:

Set up Java Path on Windows 10 step 4

Finally, we can click OK to save and apply the changes.

That'south all nosotros tin say virtually downloading and installing java on windows 10. Now, we're ready to write our showtime Java program.

Cheque Java Version on Windows 10

In that location are multiple ways that we tin can use to cheque Java version on Windows 10. Basically, when we say Java version, nosotros mean JRE version.

The most obvious and basic way is to use the terminal. Firstly, press Win+R and blazon cmd to open the Command Prompt. After that, blazon java -version and press Enter:

                      C:\Users\Asus>java -version         java version "16.0.ane" 2021-04-twenty         Coffee(TM) SE Runtime Environment (build 16.0.1+ix-24)         Coffee HotSpot(TM) 64-Bit Server VM (build 16.0.one+9-24, mixed mode, sharing)          C:\Users\Asus>                  

The output ways that Java is properly installed on our operating system.

Alternatively, nosotros tin blazon "Java" in the search box and click on "About Java":

Check Java Version on Windows

Please bear in heed that multiple versions of JDK can exist installed on the aforementioned on Windows x machine. So, it's of import to make sure the JAVA_HOME surroundings variable points to the right JDK release.

Permit'south open a new command prompt and type:

                      C:\Users\Asus>echo %JAVA_HOME%         C:\Program Files\Java\jdk-16.0.1          C:\Users\Asus>                  

As show in a higher place, the environment variable JAVA_HOME points to the directory of the lastest JDK version.

We tin besides use javac -version to verify the version of the installed JDK:

                      C:\Users\Asus>javac -version         javac 16.0.1          C:\Users\Asus>                  

Another important thing to note is that the JDK version can be different from the JRE version on the same machine.

Please keep in heed that we demand always to check for new Java updates and install them to proceed our machines up-to-date with the latest releases.

In instance you want to cheque how to enable Java on Chrome and other browsers, feel costless to take a await at this article: https://devwithus.com/enable-java-chrome/

Determination

In this article, we've explained how to tackle the challenge of downloading and installing Java on Windows 10. Then, we've seen how to add JAVA_HOME and suspend %JAVA_HOME\bin% to the Path.

Lastly, we take showcased how to verify and check the installed Java version.

Thanks for reading. Take a nice day!