INNER CODE UNIT · Java

setup

oracle/coherence · bin/cfgcommon.sh:79

function setup
  {
  #
  # Determine the root of the dev tree
  #
  cd $SCRIPTS_DIR/..
  DEV_ROOT=`pwd`
  cd - > /dev/null

  #
  # Ensure proper Java version, attempt selection if necessary
  #
  _JAVA_HOME=$JAVA_HOME
  _VERSION_REQUIRED=${JAVA_VERSION_TO_USE:-25}

  if [ -z $JAVA_HOME ] || [ "$($JAVA_HOME/bin/java -version 2>&1 | sed 's/.*version "\([0-9]*\).*/\1/; 1q')" != "$_VERSION_REQUIRED" ]; then
    # Try to find the correct version
    JAVA_HOME=`eval $_JAVA_HOME_CMD`

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…