Mercurial > hg > zsh-env
comparison zshrc-jdk @ 176:d84faf4d53ac
adding openjdk11
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Fri, 15 May 2020 13:13:18 +0200 |
parents | 6dd02b1ebb80 |
children | 51710c7c26c2 |
comparison
equal
deleted
inserted
replaced
175:8af0a6219353 | 176:d84faf4d53ac |
---|---|
10 export JDK_HOME=${JAVA_HOME} | 10 export JDK_HOME=${JAVA_HOME} |
11 export PATH="${JAVA_HOME}/bin":"${new_path}" | 11 export PATH="${JAVA_HOME}/bin":"${new_path}" |
12 java -version | 12 java -version |
13 } | 13 } |
14 | 14 |
15 jdk8() { | 15 openjdk8() { |
16 switchJdk "oracle-jdk-bin-1.8" | 16 switchJdk "openjdk-bin-8" |
17 } | 17 } |
18 | 18 |
19 openjdk8() { | 19 openjdk11() { |
20 switchJdk "openjdk-bin-8" | 20 local new_path=$(removeFromPath "jdk") |
21 export JAVA_HOME=/opt/openjdk-bin-11.0.7_p10 | |
22 export JAVAC=${JAVA_HOME}/bin/javac | |
23 export JDK_HOME=${JAVA_HOME} | |
24 export PATH="${JAVA_HOME}/bin":"${new_path}" | |
25 java -version | |
21 } | 26 } |
22 | 27 |
23 openjdk13() { | 28 openjdk13() { |
24 switchJdk "openjdk-bin-13" | 29 switchJdk "openjdk-bin-13" |
25 } | 30 } |