In this short tutorial, we're going to have a close await at how to install Java on Windows x.

We'll starting time start with a piddling insight into how to download Java. Then, we'll explain how to install it on Windows 10. So, we're going to meet how to properly set JAVA_HOME environment variable.

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

So, allow'south get started

Download Java for Windows 10

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

Every bit a thing of fact, downloading Java is a piece of cake. It'south just a matter of a few clicks and unproblematic one-time steps.

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

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

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

download Java Windows 10 step 1

Carry in mind that Oracle has dropped the support for 32 bit systems. Equally a issue, we can use Java SE only in 64 fleck machines.

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

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

download Java Windows 10 step 2

Then, we have to accept the Oracle Applied science Network License Agreement for Oracle Java SE to go on to the next pace:

download Java Windows 10 step 3

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

Easy, correct?

Install Java on Windows 10

At present that we download Java for Windows 10, let'south see how to install information technology. 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 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 showtime the installation process:

Install Java Windows 10 step 1

Secondarily, nosotros click Adjacent to continue:

Install Java Windows 10 step 2

Note that, "C:\Plan Files\Java\" is the default Java installation binder! Still, we tin can always change it if we want that.

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

Install Java Windows 10 step 3

Finally, we close the installer window in one case the installation of JDK is consummate on our Windows x.

Ready Java Path in Windows 10

At present that we known how to install Java on Windows 10, information technology's time to proceed to the next step.

In this short chapter, nosotros're going to dive deep into how to set JAVA_HOME environment variable on Windows 10. Delight note that, JAVA_HOME should point to a JDK folder non JRE.

The basic idea backside setting the Java Path is to make all the Java commands similar java, javac… accessible from everywhere. That way, we can run Coffee programs from anywhere.

Start, allow'south open the Advanced Arrangement Settings. To do that, we simply need to press Windows fundamental + Pause Primal. Alternatively, we tin type View advanced system settings in the search box.

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

Set up Java Path on Windows 10 step 1

Secondarily, nosotros click on New push button to create a new Arrangement variable with JAVA_HOME every bit proper noun and the path to the JDK directory as value:

Set up Java Path on Windows 10 step 2

As we can see, the JAVA_HOME environment variable points to the JDK folder which C:\Plan Files\Java\jdk-16.0.1 is in our case.

Set up Java Path on Windows 10 step 3

Next, 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's all nosotros can say about downloading and installing java on windows x. Now, nosotros're ready to write our first Java program.

Check Java Version on Windows ten

There are multiple ways that we tin apply to check Java version on Windows 10. Basically, when we say Java version, we hateful JRE version.

The most obvious and bones fashion is to apply the terminal. Firstly, press Win+R and type cmd to open the Command Prompt. After that, type java -version and printing Enter:

                      C:\Users\Asus>java -version         java version "xvi.0.1" 2021-04-20         Java(TM) SE Runtime Environment (build xvi.0.1+9-24)         Java HotSpot(TM) 64-Fleck Server VM (build 16.0.1+9-24, mixed style, sharing)          C:\Users\Asus>                  

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

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

Check Java Version on Windows

Please bear in heed that multiple versions of JDK can be installed on the aforementioned on Windows 10 machine. So, it's important to make certain 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-xvi.0.one          C:\Users\Asus>                  

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

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

                      C:\Users\Asus>javac -version         javac xvi.0.i          C:\Users\Asus>                  

Some other important thing to notation is that the JDK version can be different from the JRE version on the aforementioned machine.

Please go along in mind that we need always to bank check for new Java updates and install them to keep our machines upward-to-engagement with the latest releases.

In case you want to check how to enable Coffee on Chrome and other browsers, experience gratis to take a await at this commodity: https://devwithus.com/enable-coffee-chrome/

Conclusion

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

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

Thanks for reading. Have a nice day!