Here in this article, we are going to learn how to install Java 11 on Windows 10. Java Platform (JDK) 11 is the latest version of Java from Oracle. At the time of writing this article, Java SE 11.0.2 LTS was the latest version of Java 11.
Let me tell you that Java 9 and 10 are no longer supported. If you are using Java 9 or 10 switch to Java 11. Java 11 is a more like Module.
Is Java 11 free?
There is two version of Java 11 one is free and another one is paid. You can use Java 11 for free for personal use (learning purpose, testing your java program).
If you are using it for commercial reasons or to get updates after a new version is likely out. Then you have to pay to Oracle for the support.
How to Install Java JDK 11 on Windows 10?
Before installing Java 11, you have to download the Java 11 file. So, here are the complete steps to download and install Java 11 on Windows 10. Follow these steps:
Step 1: Open any browser and search for Java JDK 11
Step 2: On the download page you will find “Download Java Platform (JDK) 11“, just click on download. In order to download the Java 11 file, you have to accept the License Agreement and select your operating system. It will download a .exe file.
Note:- Java 11 is only available for 64-bit computers.
Step 3: After completing the download, just click on the .exe file and it will open installation wizard. And install the software as you install other software
Note:- You can watch the video mentioned above, it contains a full tutorial on how to download and install Java 11 on Windows 10.
Step 4: By just downloading and installing Java 11, Java will not work for that we have to set an environment variable.
Step 5: After completing the installation process you will find a Java folder under your Program Files in your C Drive. There you will find a folder named Java, inside that folder, you’ll get your JDK 11 folder. You have to set an environment variable for this folder to compile your java file. To set the environment variable
Go to Control Panel > System and Security > System > Advanced System Setting > Environment Variables
or you can watch the video provided above for a better idea.
Note:- Java 11 doesn’t include Java JRE folder. You can do similar things with
Step 6: Now after completing the installation process and setting up environment variable. Just open the command prompt and type javac to find out whether the javac compiler is properly working or not.
Note:- javac is a compiler which helps you to compile your java file.
If you find a bunch of statement in command prompt then Java JDK 11 is fully installed on your system. Now you are ready to use Java 11.