Arun Palanisamy
Arun Palanisamy

Reputation: 5459

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). Unfortunately i don't have java JDK and JRE. I'm left out with only OpenJDK 11.0.1. Is there any way to configure eclipse with OpenJDK. Below is my 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
[email protected]/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
--permit-illegal-access

Upvotes: 1

Views: 469

Answers (1)

Karol Dowbecki
Karol Dowbecki

Reputation: 44942

Eclipse 4.7 was released in 2017 doesn't support Java 11 which was released in 2018.

Either downgrade to Java 8 or use a newer Eclipse version that supports Java 11. See Eclipse/Installation wiki for further information.

Upvotes: 1

Related Questions