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

后端 未结 8 2444
庸人自扰
庸人自扰 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:58

    The Java to run Eclipse can be specified in the eclipse.ini file (see Eclipse wiki: eclipse.ini - Specifying the JVM). Add the following two lines directly before the line -vmargs and adapt the path to your Java 11 or higher 64-bit Java VM installation directory:

    -vm
    C:\Program Files\AdoptOpenJDK\jdk-14.0.2.12-openj9\bin\javaw.exe
    

    Alternatively, you can put the Java VM into the jre subdirectory of the Eclipse installation or, if you do not install Eclipse but upgrade it, install Java 11 or better Java 14 as plugin before the upgrade from Eclipse JustJ (use JustJ OpenJDK Hotspot JRE Complete, not Base or Minimal).

    Please note, that even if you run Eclipse with Java 11 or higher, Eclipse 2020-09 (4.17) still supports to code in Java 14, 13, 12, 11, 10, 9, 8 and even much older versions (down to Java 1.1). Java 15 can be installed via Marketplace.

提交回复
热议问题