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

查看:1848
本文介绍了Eclipse-不兼容的JVM.JVM的1.8.0_261版本不适用于此产品.版本:需要11或更高版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Eclipse作为存档,并安装了最新的64位Java和64位Java Development Kit 15.安装完JDK 11之后,出现同样的错误.

我该如何进行这项工作?

解决方案

可以在 eclipse.ini 文件中指定运行Eclipse的Java (请参见 Eclipse Wiki:eclipse.ini-指定JVM ).在 -vmargs 行之前直接添加以下两行,并使路径适应Java 11或更高版本的64位Java VM安装目录:

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

或者,您可以将Java VM放入Eclipse安装的 jre 子目录中;或者,如果不安装Eclipse而是对其进行升级,则在升级之前安装Java 11或更好的Java 14作为插件.来自 Eclipse JustJ (使用 JustJ OpenJDK Hotspot JRE Complete >,而不是 Base Minimal ).

请注意,即使您使用Java 11或更高版本运行Eclipse, Eclipse 2020-09(4.17)仍支持使用Java 14、13、12、11、10、9、8甚至更多语言进行编码较旧的版本(仅适用于Java 1.1).可以通过Marketplace安装Java 15 ./p>

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?

解决方案

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.

这篇关于Eclipse-不兼容的JVM.JVM的1.8.0_261版本不适用于此产品.版本:需要11或更高版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆