hotspot/src/os/posix/launcher/launcher.script
changeset 7452 b3fa838286de
parent 7410 f5b282e7a7a6
child 10565 dc90c239f4ec
equal deleted inserted replaced
7450:e44c68293be8 7452:b3fa838286de
    93     *)
    93     *)
    94         MODE=run
    94         MODE=run
    95         ;;
    95         ;;
    96 esac
    96 esac
    97 
    97 
       
    98 # Find out the absolute path to this script
       
    99 MYDIR=$(cd $(dirname $SCRIPT) && pwd)
       
   100 
       
   101 JDK=
    98 if [ "${ALT_JAVA_HOME}" = "" ]; then
   102 if [ "${ALT_JAVA_HOME}" = "" ]; then
    99     if [ "${JAVA_HOME}" = "" ]; then
   103     source ${MYDIR}/jdkpath.sh
   100 	echo "Neither ALT_JAVA_HOME nor JAVA_HOME is set. Aborting.";
       
   101 	exit 1;
       
   102     else
       
   103 	JDK=${JAVA_HOME%%/jre};
       
   104     fi
       
   105 else 
   104 else 
   106     JDK=${ALT_JAVA_HOME%%/jre};
   105     JDK=${ALT_JAVA_HOME%%/jre};
       
   106 fi
       
   107 
       
   108 if [ "${JDK}" = "" ]; then
       
   109     echo Failed to find JDK. ALT_JAVA_HOME is not set or ./jdkpath.sh is empty or not found.
       
   110     exit 1
   107 fi
   111 fi
   108 
   112 
   109 # We will set the LD_LIBRARY_PATH as follows:
   113 # We will set the LD_LIBRARY_PATH as follows:
   110 #     o		$JVMPATH (directory portion only)
   114 #     o		$JVMPATH (directory portion only)
   111 #     o		$JRE/lib/$ARCH
   115 #     o		$JRE/lib/$ARCH