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

JAVA_HOME #16

Closed
ColtonIdle opened this issue Nov 5, 2021 · 2 comments
Closed

JAVA_HOME #16

ColtonIdle opened this issue Nov 5, 2021 · 2 comments

Comments

@ColtonIdle
Copy link

This might be a dumb question, but does this install to the typical java location so that JAVA_HOME is set automatically, or are there any instructions on how to set java_home when installing from homebrew-zulu?

@mdogan
Copy link
Owner

mdogan commented Nov 5, 2021

Yes, this formula uses the installer .pkg provided by Azul, which installs into standard /Library/Java/JavaVirtualMachines/ directory. But still you might need to explicitly define JAVA_HOME in your shell profile. So using /usr/libexec/java_home tool:

Bash:

export JAVA_HOME=$(/usr/libexec/java_home)

Fish:

set -x JAVA_HOME (/usr/libexec/java_home)

@ColtonIdle
Copy link
Author

Thanks for the response. JAVA_HOME and java_home still make my head hurt after all these years and your explanation really helped. Much appreciated @mdogan !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants