halcyon / asdf-java

A Java plugin for asdf-vm.
MIT License
440 stars 84 forks source link

Use user home for MacOS `/usr/libexec/java_home` integration #213

Open mrmeszaros opened 10 months ago

mrmeszaros commented 10 months ago

Currently, the integration installs into the system directory. For example:

/Library/Java/JavaVirtualMachines/zulu-11.66.15_1/Contents/Home

However, it would be more logical to use the same path inside the users path:

/Users/mrmeszaros/Library/Java/JavaVirtualMachines/azul-11.0.20/Contents/Home

The macos integration can be turned on by extending .asdfrc:

java_macos_integration_enable = yes
amr commented 9 months ago

+1, this would also not require the root permission.