更新从Eclipse 2020-06到2020-09后,Java支持消失了。

huangapple go评论61阅读模式
英文:

After updating from Eclipse 2020-06 to 2020-09, Java support is gone

问题

以下是翻译好的内容:

我在 Windows 10 上使用 Java 开发 Eclipse for Java Developers 2020-06,后来决定运行更新,更新后安装了 Eclipse 2020-09。当 Eclipse 重新启动后,我创建了一个新的工作空间。当我打开“Preferences”时,不再有 Java 部分。唯一的 Java 搜索结果出现在 Oomph 中:

(图片已省略)

Java 的“新建项目”向导也不见了(我在“其他”下检查过)。

安装详细信息仍然显示为 Eclipse IDE for Java Developers 和 Eclipse Java Development Tools:

(图片已省略)

如何重新启用 Java 支持?

更新

以下是 eclipse.ini 文件内容:

(代码已省略)

英文:

I was developing in Java on Eclipse for Java Developers 2020-06 on Windows 10 and decided to run updates, which installed Eclipse 2020-09. When Eclipse restarted, I created a new workspace. When I opened Preferences, there was no longer a Java section. The only Java search result was in Oomph:

更新从Eclipse 2020-06到2020-09后,Java支持消失了。

The Java New Project wizard was also gone. (I checked under Other.)

The installation details still show Eclipse IDE for Java Developers and Eclipse Java Development Tools:

更新从Eclipse 2020-06到2020-09后,Java支持消失了。

How do I reenable Java support?

Update

Here is the eclipse.ini file:

-startup
plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1300.v20200819-0940
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=11
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=11
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx2048m
--add-modules=ALL-SYSTEM

答案1

得分: 1

只是为了明确,我假设您已经在您的 "eclipse.ini" 文件中的 "-vm" 参数中指定了 Java 11 JDK(或更新版本)?2020-09 版本需要至少 Java 11 才能运行。

我会创建一个新的工作空间。

英文:

Just to be clear, I assume you have specified a Java 11 JDK (or newer) in the "-vm" arguments in your "eclipse.ini" file? 2020-09 requires at least Java 11 to run.

I would create a new workspace.

huangapple
  • 本文由 发表于 2020年10月22日 06:21:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/64472533.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定