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

We'll first kickoff with a little insight into how to download Coffee. And so, we'll explain how to install it on Windows 10. So, we're going to see how to properly gear up JAVA_HOME environment variable.

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

Then, permit'south get started

Download Coffee for Windows x

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

As a matter of fact, downloading Java is a piece of block. It's merely a affair of a few clicks and simple ane-time steps.

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

At this point in time, the latest version is Java SE sixteen.0.1.

Secondarily, we need to click on the JDK Download button:

download Java Windows 10 step 1

Bear in listen that Oracle has dropped the support for 32 flake systems. Equally a effect, we tin use Java SE only in 64 bit machines.

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

Next up, let'south choose the Windows x64 Installer option:

download Java Windows 10 step 2

And so, nosotros accept to accept the Oracle Engineering Network License Agreement for Oracle Java SE to proceed to the adjacent footstep:

download Java Windows 10 step 3

Lastly, a simple click on the download button will do the job.

Easy, right?

Install Java on Windows 10

Now that we download Coffee for Windows 10, let'due south encounter how to install it. Basically, the process of installing Java on Windows 10 is pretty like shooting fish in a barrel and simple.

In general, we don't need to change anything during the installation, nosotros can go with the default settings and follow the suggested instructions.

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

Install Java Windows 10 step 1

Secondarily, we click Adjacent to proceed:

Install Java Windows 10 step 2

Note that, "C:\Programme Files\Coffee\" is the default Java installation binder! Nonetheless, we can always change it if we want that.

Then, we keep striking Next until the installation is consummate:

Install Java Windows 10 step 3

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

Prepare Java Path in Windows x

Now that we known how to install Java on Windows ten, information technology's time to continue to the next step.

In this short chapter, we're going to dive deep into how to set JAVA_HOME environs variable on Windows 10. Please annotation that, JAVA_HOME should betoken to a JDK folder not JRE.

The basic idea behind setting the Coffee Path is to brand all the Java commands like coffee, javac… accessible from everywhere. That way, we tin can run Coffee programs from anywhere.

First, let'south open the Avant-garde Organisation Settings. To do that, we just demand to printing Windows key + Pause Key. Alternatively, we can type View advanced arrangement settings in the search box.

Once the System Properties window is opened, we click on Environment Variables:

Set up Java Path on Windows 10 step 1

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

Set up Java Path on Windows 10 step 2

Equally we tin see, the JAVA_HOME environment variable points to the JDK folder which C:\Program Files\Java\jdk-16.0.ane is in our case.

Set up Java Path on Windows 10 step 3

Next, we need to update the Path variable past adding a new entry for %JAVA_HOME\bin%:

Set up Java Path on Windows 10 step 4

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

That's all we can say about downloading and installing java on windows 10. Now, we're ready to write our first Coffee program.

Bank check Java Version on Windows 10

In that location are multiple ways that we can use to check Java version on Windows 10. Basically, when we say Coffee version, we hateful JRE version.

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

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

The output means that Coffee is properly installed on our operating organization.

Alternatively, we tin can type "Java" in the search box and click on "About Java":

Check Java Version on Windows

Please bear in mind that multiple versions of JDK can be installed on the aforementioned on Windows ten car. So, it'south important to make sure the JAVA_HOME environment variable points to the right JDK release.

Let's open a new command prompt and type:

                      C:\Users\Asus>echo %JAVA_HOME%         C:\Program Files\Java\jdk-sixteen.0.1          C:\Users\Asus>                  

Every bit show above, the environs variable JAVA_HOME points to the directory of the lastest JDK version.

Nosotros tin likewise utilize javac -version to verify the version of the installed JDK:

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

Some other important matter to note is that the JDK version tin can be unlike from the JRE version on the same auto.

Delight keep in mind that we need always to cheque for new Coffee updates and install them to continue our machines up-to-appointment with the latest releases.

In case you lot want to cheque how to enable Java on Chrome and other browsers, feel gratis to take a look at this article: https://devwithus.com/enable-coffee-chrome/

Conclusion

In this article, we've explained how to tackle the challenge of downloading and installing Java on Windows x. And then, we've seen how to add together JAVA_HOME and append %JAVA_HOME\bin% to the Path.

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

Thanks for reading. Accept a prissy day!