我想尝试来自 openJdk9 repository 的最新 Java与我相当古老的 Eclipse。我下载、构建并安装了它,一切正常。然后我将它设置为 Eclipse 的默认 JVM,所有内容都被重新编译,但由于找不到 java.lang.CharSequence
等基本 Java 类而出现错误。
构建路径看起来不错,rt.jar
也是如此。
有什么东西阻止 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/