setJavaVersion17.sh 187 B

12345678910
  1. #!/usr/bin/env bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. # Set java version to JDK 11
  7. export JAVA_HOME=$(/usr/libexec/java_home -v17)
  8. export PATH=$JAVA_HOME/bin:$PATH