java was started but returned exit code=1

Eclipse启动后报此错误,百度后的方法试了都无效。
java was started but returned exit code=1_第1张图片
观察eclipse.ini后,发现有两处-vm F:\Program Files\Java\jdk-12.0.1\bin\javaw.exe
删除其中一处后正常启动

-startup
plugins/org.eclipse.equinox.launcher_1.5.300.v20190213-1655.jar
--launcher.library
C:/Users/suzuya/.p2/pool/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.1000.v20190125-2016
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
F:\Program Files\Java\jdk-12.0.1\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
[email protected]/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
-vm
F:\Program Files\Java\jdk-12.0.1\bin\javaw.exe

你可能感兴趣的:(软件报错)