halcyon / asdf-java

A Java plugin for asdf-vm.
MIT License
470 stars 87 forks source link

Support /usr/libexec/java_home for installs #53

Closed daincredibleholg closed 4 years ago

daincredibleholg commented 4 years ago

I just had a hard time to figure that out: When I try to run anything Eclipse-based (in this case, Apache Directory Studio) and I do not have a "proper" Java installation (one that does not end up in /Library/Java/JavaFrameworks and has all the Info.plist and other foo), MacOS presents me with an error message. This error message only tells me to install legacy Java.

So, it would be great if installing a version via this plugin would create the symlinks or meta-information needed so that java_home "just" picks up the available versions. The benefit would be that applications like ADS or Eclipse would run out of the box.

Spoilers: Following up search results on how to fix this manually point to the Eclipse Info.plist. Unfortunately, configuring the -vm flag doesn't help.

joschi commented 4 years ago

Duplicate of #33.

daincredibleholg commented 4 years ago

Mea culpa! Will follow the other one and we close this one :)