Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I upgrade from Java 1.8.0 to Java 11? [closed]

Tags:

java

eclipse

I am using the latest 2020 version of Eclipse. After installing JRE from https://www.java.com/en/download/windows-64bit.jsp, when I run Eclipse, I get this error:

Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required.

After checking out java -version from command line, I've found out that my Java version is 1.8.0_261.

So, do I have to upgrade to Java 11? If yes, then how?


1 Answers

Download AdoptedOpenJDK 11 (which is free popular legal JDK to use) from here : https://adoptopenjdk.net/

Install it and set JAVA_HOME or JRE_HOME in the environment variable. That's all.

But you can use JDK from other free vendors as well.

like image 190
Anish B. Avatar answered Oct 20 '25 02:10

Anish B.