java - 使用 JDK9 的 Eclipse Indigo

标签 java eclipse openjdk java-9

我想尝试来自 openJdk9 repository 的最新 Java与我相当古老的 Eclipse。我下载、构建并安装了它,一切正常。然后我将它设置为 Eclipse 的默认 JVM,所有内容都被重新编译,但由于找不到 java.lang.CharSequence 等基本 Java 类而出现错误。

构建路径看起来不错,rt.jar 也是如此。 build path

有什么东西阻止 Eclipse Indigo 使用 JDK9 吗?我并不是要研究新的 Java 功能,只是想使用最新版本来衡量性能。

最佳答案

Eclipse 维护者的信息很明确 ::

Indigo is a past version of Eclipse. Please visit our download page for the latest version of Eclipse.

您应该升级到使用 Eclipse Oxygen.1a (4.7.1a) Release 于 2017 年 10 月 11 日发布以支持 JPMS。


另一边

The build path looks fine and so does rt.jar.

Java 9 涉及 Removing rt.jar and tools.jar 的进程旨在将图像重组为 Modular Run-Time Images 。从今以后 :-

Tools and libraries that rely on the existence of the jre directory, rt.jar, or tools.jar may need to be updated to work with the new layout and/or may need to be updated to use the jrt file system provider to access class files and other resources in the runtime image.

关于java - 使用 JDK9 的 Eclipse Indigo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21878004/

相关文章:

java - LibGDX box2d 检测对象的特定实例

java - 将 JApplet 转换为 .exe

java - 与 Oracle RECORD、TABLE 和 OBJECT 类型一起使用的 JDBC

java - 如何添加数据而不覆盖现有数据?

java - Eclipse: "Save Actions"选项中的导入+导出操作

java - 如何更新 OpenJDK 的时区信息?

java - 有人有 aerith 风格 swing 与 SWT 编辑的 GUI 可维护性混合的例子吗?

java - 安装的 MoonRise UI 主题现在有突出显示的代码片段

java - Jdk9/java-9中module-info.java编译错误如何解决

java - Stanford CoreNLP python接口(interface)安装错误