From 3434735ea3b4e010aa30a846842c7e56eab0359b Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Sun, 23 Aug 2020 15:19:59 +0800 Subject: [PATCH] Update java home --- zsh/env.zsh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zsh/env.zsh b/zsh/env.zsh index d34d20b..b3a95d3 100644 --- a/zsh/env.zsh +++ b/zsh/env.zsh @@ -33,10 +33,14 @@ if [[ -d "/usr/local/jdk1.8.0_131" ]]; then export JAVA_HOME=/usr/local/jdk1.8.0_131 export PATH=$PATH:$JAVA_HOME/bin/ fi -if [[ -d "$HOME/.asdf/installs/java/adoptopenjdk-8.0.262+10.openj9-0.21.0" ]]; then - export JAVA_HOME=$HOME/.asdf/installs/java/adoptopenjdk-8.0.262+10.openj9-0.21.0 +if [[ -d "$HOME/.asdf/installs/java/adoptopenjdk-8.0.265+1/" ]]; then + export JAVA_HOME=$HOME/.asdf/installs/java/adoptopenjdk-8.0.265+1/ export PATH=$PATH:$JAVA_HOME/bin/ fi +# if [[ -d "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/" ]]; then +# export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/ +# export PATH=$PATH:$JAVA_HOME/bin/ +# fi # export JAVA_HOME="$HOME/.jenv/versions/`jenv version-name`" if [[ -d "~/.asdf/plugins/java/" ]]; then