Oracle’s Java version has become a paid service, which compels us to use OpenJDK, the open-source version that allows for a commercial form of Java.
In this tutorial, I will show you how to install Java OpenJDK on Windows 10/11.
To do this, we go to the website and download it. In my case, we are going to install OPEN JDK: https://learn.microsoft.com/es-es/java/openjdk/download
Or on the official OpenJDK website: https://openjdk.org/
We finish installing it.
Once installed, we check the installation path, in my case it is:
C:\Program Files\Microsoft\jdk-17.0.8.101-hotspot
Since I have installed JDK-17 hotspot, if you have another version, you will need to navigate to:
C:\Program Files\Microsoft\
And verify which one is correct.
Now we need to add the JAVA_HOME environment variable, to do this:
Windows 10/11: