I just downloaded Eclipse as archive, and installed newest 64 bit Java and 64 bit Java Development Kit 15. And i get this error. Installed JDK 11 after, the same error.
I Was getting this error on linux OS but the following solution should work for all OS.
Step 1: Open a command prompt
type > $ java -version
you will see something like this -
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-0ubuntu1~16.04-b01)
OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode)
(may vary depending on your computer and OS)
Step 2: open the eclipse.ini
file
Locate the following line -
-Dosgi.requiredJavaVersion=11
Change it to
-Dosgi.requiredJavaVersion=1.8
and restart eclipse. It is there twice so change at both places. You may try to give the java version specific to your system (from output of step 1) This has worked for me. Thanks.
I had the same problem and what I did was to download another version of Java EE Eclips. I got the Eclipse 2020-06 (4.16):
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2020-06/R/eclipse-jee-2020-06-R-win32-x86_64.zip
After downloading it, it worked.
I also face the same issue but not resolved not matter what. Then it got resolved installing below link. https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2020-09/R/eclipse-inst-jre-win64.exe
I got it resolved by adding the vm parameters in the eclipse configuration file at the top.
I downloaded JDK from https://www.oracle.com/java/technologies/javase-jdk15-downloads.html and put the unpacked contents to jre
subdirectory of Eclipse's installation path - there is a path eclipse/jre/bin/javaw.exe
. Eclipse picks it up automatically over any other installation.
Had the same issue. Got it to work by re-installing using the installer from https://www.eclipse.org/downloads/ which includes a JRE