Skip to content

Commit

Permalink
feat(java): rework JAVA_HOME env
Browse files Browse the repository at this point in the history
OpenJDK seems to not use a version in the path to its JVM any more. Yay!
  • Loading branch information
eliasnorrby committed Jan 21, 2021
1 parent 076affe commit 6de7264
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lang/java/env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ if [[ "$(_os)" == "macos" ]]; then
# export JAVA_8_HOME="$(/usr/libexec/java_home -v 1.8)"
export JAVA_8_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home"
# export JAVA_14_HOME="$(/usr/libexec/java_home -v 14)"
export JAVA_14_HOME="/Library/Java/JavaVirtualMachines/openjdk-14.0.2.jdk/Contents/Home"
export JAVA_LATEST_HOME="/Library/Java/JavaVirtualMachines/openjdk.jdk/Contents/Home"
fi

alias java8='export JAVA_HOME=$JAVA_8_HOME'
alias java14='export JAVA_HOME=$JAVA_14_HOME'
alias javalatest='export JAVA_HOME=$JAVA_LATEST_HOME'

# default to Java 14
java14
javalatest
# java8

0 comments on commit 6de7264

Please sign in to comment.