In this short tutorial, nosotros're going to take a shut look at how to install Java on Windows 10.

We'll first start with a little insight into how to download Coffee. Then, we'll explicate how to install it on Windows 10. Then, we're going to see how to properly set JAVA_HOME surround variable.

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

So, let's get started

Download Java for Windows ten

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

Every bit a matter of fact, downloading Java is a like shooting fish in a barrel. It's only a affair of a few clicks and simple 1-time steps.

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

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

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

download Java Windows 10 step 1

Bear in mind that Oracle has dropped the back up for 32 bit systems. As a result, we can use Java SE only in 64 bit machines.

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

Next upwards, let's choose the Windows x64 Installer option:

download Java Windows 10 step 2

And so, we take to accept the Oracle Engineering Network License Agreement for Oracle Java SE to keep to the adjacent step:

download Java Windows 10 step 3

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

Easy, right?

Install Java on Windows ten

Now that we download Java for Windows 10, let'due south see how to install it. Basically, the process of installing Coffee on Windows 10 is pretty easy and simple.

In general, we don't need to change annihilation during the installation, we can go 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 continue:

Install Java Windows 10 step 2

Annotation that, "C:\Programme Files\Java\" is the default Java installation folder! Nonetheless, nosotros tin always modify information technology if we want that.

And then, we go along hitting Next until the installation is complete:

Install Java Windows 10 step 3

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

Set Java Path in Windows 10

Now that we known how to install Java on Windows ten, information technology'south time to proceed to the next footstep.

In this brusque chapter, we're going to swoop deep into how to ready JAVA_HOME environment variable on Windows 10. Delight note 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 way, we can run Java programs from anywhere.

First, let'south open the Advanced System Settings. To do that, we just need to press Windows key + Pause Fundamental. Alternatively, we tin type View advanced organization settings in the search box.

In one case the System Backdrop window is opened, nosotros 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 equally proper name and the path to the JDK directory as value:

Set up Java Path on Windows 10 step 2

Every bit nosotros tin see, the JAVA_HOME environment variable points to the JDK folder which C:\Program Files\Java\jdk-sixteen.0.1 is in our case.

Set up Java Path on Windows 10 step 3

Next, nosotros 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, nosotros tin can click OK to relieve and utilize the changes.

That'due south all we tin can say well-nigh downloading and installing java on windows 10. Now, we're ready to write our first Java programme.

Check Java Version on Windows 10

There are multiple ways that we can apply to cheque Java version on Windows 10. Basically, when we say Java version, we mean JRE version.

The nigh obvious and basic way is to use the terminal. Firstly, printing Win+R and type cmd to open the Control Prompt. Afterward that, type coffee -version and press Enter:

                      C:\Users\Asus>java -version         java version "16.0.one" 2021-04-20         Coffee(TM) SE Runtime Environs (build 16.0.one+nine-24)         Coffee HotSpot(TM) 64-Flake Server VM (build 16.0.1+nine-24, mixed manner, sharing)          C:\Users\Asus>                  

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

Alternatively, we tin type "Java" in the search box and click on "Well-nigh Java":

Check Java Version on Windows

Please bear in mind that multiple versions of JDK can be installed on the same on Windows 10 machine. And so, information technology'due south important to make certain the JAVA_HOME environment variable points to the correct JDK release.

Let'southward open up a new control prompt and type:

                      C:\Users\Asus>echo %JAVA_HOME%         C:\Program Files\Java\jdk-xvi.0.one          C:\Users\Asus>                  

Equally show above, the environment variable JAVA_HOME points to the directory of the lastest JDK version.

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

                      C:\Users\Asus>javac -version         javac sixteen.0.one          C:\Users\Asus>                  

Another important thing to note is that the JDK version can exist different from the JRE version on the aforementioned car.

Please keep in mind that we need always to cheque for new Java updates and install them to keep our machines upwards-to-engagement with the latest releases.

In instance yous want to check how to enable Java on Chrome and other browsers, feel free to take a look at this article: https://devwithus.com/enable-java-chrome/

Conclusion

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

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

Thanks for reading. Have a prissy mean solar day!