10.set_java_version.sh 184 B

1234567891011
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. export JAVA_HOME=$(/usr/libexec/java_home -v11)
  7. echo "Setting JAVA HOME... DONE"
  8. export PATH=$JAVA_HOME/bin:$PATH