-
Notifications
You must be signed in to change notification settings - Fork 0
Set JAVA HOME
Zhamri Che Ani edited this page Nov 19, 2025
·
2 revisions
export JAVA_HOME="$(brew --prefix openjdk)/libexec/openjdk.jdk/Contents/Home"
echo $JAVA_HOME
Edit .zshrc
vim ~/.zshrc
Find old JAVA_HOME and replace with this code:
export JAVA_HOME="$(brew --prefix openjdk)/libexec/openjdk.jdk/Contents/Home"
source ~/.zshrc
maven requires JAVA_HOME to run
mvn test