Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse and Eclipse-installer fail to run when using Corretto 8 #18

Closed
alvdavi opened this issue Nov 19, 2018 · 2 comments
Closed

Eclipse and Eclipse-installer fail to run when using Corretto 8 #18

alvdavi opened this issue Nov 19, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@alvdavi
Copy link
Contributor

alvdavi commented Nov 19, 2018

Description

Attempting to run eclipse or eclipse-installer with corretto8 as the default JDK in Mac 10.12.6 fails while displaying a "Failed to Create the Java Virtual Machine error" popup.

Output when running:

$ /Volumes/Eclipse\ Installer/Eclipse\ Installer.app/Contents/MacOS/eclipse-inst

/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home
Error: could not find libjava.dylib
Failed to GetJREPath()

libjava.dylib is currently present in:

/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre/lib/libjava.dylib

Problem does not happen with Oracle/Zulu/AdoptOpenJDK

To Reproduce

Install corretto and another JDK8 implementation
Try:

$ /Applications/Eclipse.app/Contents/MacOS/eclipse -vm /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/bin/java

The program failed with:

Error: could not find libjava.dylib
Failed to GetJREPath()

Expected behavior

Eclipse and Eclipse-Installer should start when using corretto

Platform information

OS: macOS High Sierra 10.13.6
Version: build 1.8.0_192-amazon-corretto-preview-b12
@ziyiluo
Copy link
Contributor

ziyiluo commented Nov 19, 2018

This is a symlink issue. The libjli.dylib under /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/MacOS should be a symlink to /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib but was dereferenced. This issue is planned to be fixed in the next release. Recreating the symlink solves the issue:

sudo ln -sf /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre/lib/jli/libjli.dylib /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/MacOS

@davecurrie davecurrie added the bug Something isn't working label Nov 19, 2018
@davecurrie davecurrie assigned davecurrie and ziyiluo and unassigned davecurrie Nov 21, 2018
@ziyiluo ziyiluo added this to the Preview Bug Fixes milestone Dec 15, 2018
@ziyiluo
Copy link
Contributor

ziyiluo commented Dec 18, 2018

This issue is fixed in the new Corretto preview release (1.8.0_192-amazon-corretto-preview2-b12). Change log of this release is now available. You can find the builds in the Corretto download page. Please let us know if you have any further questions. We appreciate your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants