问题描述
我正在Windows 10上针对Java Developers 2020-06在Eclipse上使用Java开发,因此决定运行更新,该更新安装了Eclipse 2020-09。 Eclipse重新启动后,我创建了一个新的工作区。当我打开Preferences
时,不再有Java部分。唯一的Java搜索结果是在Oomph中:
Java New Project
向导也消失了。 (我在Other
下进行了检查。)
安装细节仍然显示Java开发人员的Eclipse IDE和Eclipse Java开发工具:
如何重新启用Java支持?
更新
这是eclipse.ini
文件:
-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
解决方法
请明确说明,我假设您已经在“ eclipse.ini”文件的“ -vm”参数中指定了Java 11 JDK(或更高版本)? 2020-09年至少需要运行Java 11。
我将创建一个新的工作区。