Eclipse - 不兼容的 JVM.JVM 1.8.0_261 版本不适合本产品.版本:需要 11 或更高版本 [英] Eclipse - Incompatible JVM. Version 1.8.0_261 of the JVM is not suitable for this product. Version: 11 or greater is required
问题描述
我刚刚将 Eclipse 作为存档下载,并安装了最新的 64 位 Java 和 64 位 Java 开发工具包 15.我收到此错误.安装JDK 11后,同样的错误.
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.
我怎样才能做到这一点?
How can I make this work?
推荐答案
运行Eclipse的Java可以在eclipse.ini
文件中指定(见Eclipse wiki:eclipse.ini - 指定 JVM).在 -vmargs
行之前直接添加以下两行,并将路径调整为 Java 11 或更高版本的 64 位 Java VM 安装目录:
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 FilesAdoptOpenJDKjdk-14.0.2.12-openj9injavaw.exe
或者,您可以将 Java VM 放入 Eclipse 安装的 jre
子目录中,或者,如果您不安装 Eclipse 而是升级它,请在升级前安装 Java 11 或更好的 Java 14 作为插件来自 Eclipse JustJ(使用 JustJ OpenJDK Hotspot JRE Complete,而不是 Base 或 Minimal).
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).
请注意,即使您使用 Java 11 或更高版本运行 Eclipse,Eclipse 2020-09 (4.17) 仍然支持使用 Java 14、13、12、11、10、9、8 甚至更多旧版本(低至 Java 1.1).Java 15 可以通过 Marketplace 安装.
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.
这篇关于Eclipse - 不兼容的 JVM.JVM 1.8.0_261 版本不适合本产品.版本:需要 11 或更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!