|
Re: Eclipse 2018-09 and Amazon Corretto [message #1799254 is a reply to message #1798475] |
Mon, 03 December 2018 14:13 |
Eclipse User |
|
|
|
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 #1799280 is a reply to message #1799273] |
Mon, 03 December 2018 22:17 |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03679 seconds