简体   繁体   English

Eclipse“Java已启动但​​返回退出代码= 1”与OpenJDK

[英]Eclipse "Java was started but returned exit code=1" with OpenJDK

I'm trying to install eclipse( eclipse jee oxygen 4.7 ) in my system( 64 bit ).我正在尝试在我的系统( 64 bit )中安装 eclipse( eclipse jee oxygen 4.7 )。 Unfortunately i don't have java JDK and JRE.不幸的是,我没有 Java JDK 和 JRE。 I'm left out with only OpenJDK 11.0.1.我只剩下 OpenJDK 11.0.1。 Is there any way to configure eclipse with OpenJDK.有什么方法可以使用 OpenJDK 配置 Eclipse。 Below is my eclipse.ini下面是我的eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.500.v20170511-1520
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Oracle\OpenJDK 11.0.1\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
--permit-illegal-access

Eclipse 4.7 was released in 2017 doesn't support Java 11 which was released in 2018. 2017 年发布的 Eclipse 4.7 不支持 2018 年发布的 Java 11。

Either downgrade to Java 8 or use a newer Eclipse version that supports Java 11. See Eclipse/Installation wiki for further information.降级到 Java 8 或使用支持 Java 11 的较新 Eclipse 版本。有关详细信息,请参阅Eclipse/安装wiki。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM