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

后端 未结 8 2446
庸人自扰
庸人自扰 2020-12-20 11:14

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.

相关标签:
8条回答
  • 2020-12-20 11:34

    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.

    0 讨论(0)
  • 2020-12-20 11:38

    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.

    0 讨论(0)
  • 2020-12-20 11:41

    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

    0 讨论(0)
  • 2020-12-20 11:50

    I got it resolved by adding the vm parameters in the eclipse configuration file at the top.

    0 讨论(0)
  • 2020-12-20 11:53

    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.

    0 讨论(0)
  • 2020-12-20 11:56

    Had the same issue. Got it to work by re-installing using the installer from https://www.eclipse.org/downloads/ which includes a JRE

    0 讨论(0)
提交回复
热议问题