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

Nosotros'll starting time offset with a piddling insight into how to download Java. So, we'll explain how to install information technology on Windows 10. So, we're going to encounter how to properly set up JAVA_HOME surroundings variable.

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

So, let's get started

Download Coffee for Windows ten

In this section, we'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 slice of block. It's just a matter of a few clicks and uncomplicated one-time steps.

Starting time, nosotros 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 16.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 support for 32 fleck systems. Equally a result, we tin can utilise Java SE only in 64 chip machines.

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

Next upwards, let'south cull the Windows x64 Installer choice:

download Java Windows 10 step 2

Then, we have to accept the Oracle Engineering Network License Agreement for Oracle Java SE to proceed to the next step:

download Java Windows 10 step 3

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

Easy, correct?

Install Java on Windows 10

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

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

Firstly, nosotros need to double click on the downloaded installer file to first the installation process:

Install Java Windows 10 step 1

Secondarily, we click Side by side to keep:

Install Java Windows 10 step 2

Note that, "C:\Plan Files\Coffee\" is the default Java installation binder! Withal, we can ever change it if we desire that.

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

Install Java Windows 10 step 3

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

Set Coffee Path in Windows ten

Now that we known how to install Java on Windows ten, it'due south time to proceed to the next step.

In this brusk affiliate, we're going to dive deep into how to set JAVA_HOME environment variable on Windows ten. Delight note that, JAVA_HOME should point to a JDK binder not JRE.

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

First, let's open the Advanced Organisation Settings. To do that, nosotros just demand to press Windows key + Pause Key. Alternatively, nosotros tin can type View avant-garde organisation settings in the search box.

In one case the System Properties window is opened, nosotros click on Environs Variables:

Set up Java Path on Windows 10 step 1

Secondarily, nosotros click on New button to create a new System variable with JAVA_HOME every bit name 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:\Program Files\Coffee\jdk-xvi.0.1 is in our case.

Set up Java Path on Windows 10 step 3

Next, we demand to update the Path variable by calculation a new entry for %JAVA_HOME\bin%:

Set up Java Path on Windows 10 step 4

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

That's all nosotros can say most downloading and installing java on windows 10. Now, we're ready to write our first Java programme.

Check Java Version on Windows 10

At that place are multiple means that nosotros tin apply to check Java version on Windows 10. Basically, when we say Java version, we mean JRE version.

The nearly obvious and bones fashion is to utilize the last. Firstly, press Win+R and type cmd to open the Command Prompt. After that, type coffee -version and press Enter:

                      C:\Users\Asus>java -version         java version "xvi.0.1" 2022-04-20         Coffee(TM) SE Runtime Surroundings (build xvi.0.1+9-24)         Java HotSpot(TM) 64-Chip Server VM (build 16.0.1+9-24, mixed manner, sharing)          C:\Users\Asus>                  

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

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

Check Java Version on Windows

Delight behave in mind that multiple versions of JDK can exist installed on the same on Windows 10 machine. So, it's important to make certain the JAVA_HOME surroundings variable points to the right JDK release.

Let's open a new control prompt and type:

                      C:\Users\Asus>repeat %JAVA_HOME%         C:\Program Files\Coffee\jdk-sixteen.0.one          C:\Users\Asus>                  

As prove above, the environment variable JAVA_HOME points to the directory of the lastest JDK version.

We can besides utilise javac -version to verify the version of the installed JDK:

                      C:\Users\Asus>javac -version         javac 16.0.ane          C:\Users\Asus>                  

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

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

In case y'all want to check how to enable Coffee on Chrome and other browsers, feel free to take a look at this article: https://devwithus.com/enable-coffee-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 append %JAVA_HOME\bin% to the Path.

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

Thank you for reading. Take a overnice day!