Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Eclipse 2018-09 and Amazon Corretto(Eclipse 2018-09 will not launch with Amazon Corretto)
Eclipse 2018-09 and Amazon Corretto [message #1798475] Mon, 19 November 2018 16:17 Go to next message
Tim Hughes is currently offline Tim HughesFriend
Messages: 2
Registered: November 2018
Junior Member
I cannot launch Eclipse using Amazon Corretto JDK (1.8) on MacOS X 10.13.6

I've been running Eclipse 2018-09 with Oracle JDK8, and also with AdoptOpenJDK 8 and 11. With Amazon Corretto 8, Eclipse fails on startup with "Failed to create the Java Virtual Machine"

I've tried the various methods in this forum and others regarding setting/unsetting things in the eclipse.ini file to no avail. No logs are produced that I can find, so I'm out of troubleshooting ideas.

Anyone else experience this? Anyone running Eclipse with Corretto?
Re: Eclipse 2018-09 and Amazon Corretto [message #1799254 is a reply to message #1798475] Mon, 03 December 2018 14:13 Go to previous messageGo to next message
Eclipse UserFriend
I haven't dug into this, but there must be some pattern that's not matched in the launcher. It does work if you run Eclipse by invoking the JVM directly:
   java -XstartOnFirstThread <jvm args ...> -jar path\to\org.eclipse.equinox.launcher_XXXX.jar <eclipse args ...>


I guess Corretto isn't quite as much of a drop-in replacement as hoped :-)

Brian.
Re: Eclipse 2018-09 and Amazon Corretto [message #1799273 is a reply to message #1798475] Mon, 03 December 2018 19:30 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

What's the output of "/usr/libexec/java_home --verbose" with Corretto installed?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse 2018-09 and Amazon Corretto [message #1799280 is a reply to message #1799273] Mon, 03 December 2018 22:17 Go to previous messageGo to next message
Eclipse UserFriend
This is what I see:
$ /usr/libexec/java_home --verbose
Matching Java Virtual Machines (8):
    11.0.1, x86_64:	"OpenJDK 11.0.1"	/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home
    11, x86_64:	"OpenJDK 11"	/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
    1.8.0_192, x86_64:	"Amazon Corretto 8"	/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home
    1.8.0_192, x86_64:	"Java SE 8"	/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home
    1.8.0_181, x86_64:	"Java SE 8"	/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
    1.7.0_80, x86_64:	"Java SE 7"	/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
    1.6.0_65-b14-468, x86_64:	"Java SE 6"	/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_65-b14-468, i386:	"Java SE 6"	/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home


Ah, if I try the launcher with `-debug`, I see the following:
$ /installs/Eclipse.app/Contents/MacOS/eclipse -console -vm  /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/bin/java
Start VM: -Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Djava.class.path=/installs/Eclipse.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar
-os macosx
-ws cocoa
-arch x86_64
-showsplash
-launcher /installs/Eclipse.app/Contents/MacOS/eclipse
-name Eclipse
--launcher.library /installs/Eclipse.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.900.v20180922-1751/eclipse_1801.so
-startup /installs/Eclipse.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar
--launcher.appendVmargs
-debug
-vm /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/bin/../jre/lib/server/libjvm.dylib
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Djava.class.path=/installs/Eclipse.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.5.200.v20180922-1751.jar 
Error: could not find libjava.dylib
Failed to GetJREPath()


But its layout doesn't seem any different from Oracle JDKL:
$ find /Library/Java/JavaVirtualMachines/{jdk1.8.0*,amazon-corretto-8.jdk}/Contents/Home -name libjava.dylib -o -name libjvm.dylib
/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home/jre/lib/server/libjvm.dylib
/Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk/Contents/Home/jre/lib/libjava.dylib
/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre/lib/server/libjvm.dylib
/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre/lib/libjava.dylib

(I trimmed out the 181 from the above, as it's no different.)

[Updated on: Mon, 03 December 2018 22:17] by Moderator

Report message to a moderator

Re: Eclipse 2018-09 and Amazon Corretto [message #1820833 is a reply to message #1798475] Wed, 29 January 2020 22:51 Go to previous messageGo to next message
Mateusz Lawrynowicz is currently offline Mateusz LawrynowiczFriend
Messages: 1
Registered: January 2020
Junior Member
Did you get anywhere with this? My issue is different, but your thread is the closest to it that I've found so far.
Re: Eclipse 2018-09 and Amazon Corretto [message #1821029 is a reply to message #1820833] Tue, 04 February 2020 16:37 Go to previous messageGo to next message
Tim Hughes is currently offline Tim HughesFriend
Messages: 2
Registered: November 2018
Junior Member
Sorry, I did not. My company opted to update to Java 11 (adoptOpenJDK), so we didn't pursue this any further.
Re: Eclipse 2018-09 and Amazon Corretto [message #1822362 is a reply to message #1821029] Wed, 04 March 2020 23:34 Go to previous message
Justin Dolezy is currently offline Justin DolezyFriend
Messages: 12
Registered: July 2009
Junior Member
I had the same message with an AdoptOpenJDK build (11 iirc) - the problem turned out to be due to package structure changed. The MacOS\libjli.dylib file was no longer a symbolic link but a copy of the file. Seems to matter to the Eclipse launcher.. Worth checking that perhaps..
Previous Topic:Debugging Controls Greyed Out
Next Topic:Eclipse on Win 10 x64 with AdoptOpenJDK jdk-13.0.2+8
Goto Forum:
  


Current Time: Tue Apr 23 16:10:26 GMT 2024

Powered by FUDForum. Page generated in 0.03379 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top