setEnv.sh
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:2k
- #!/bin/sh
- #
- # Shell Script which sets the initial Enviroment for startup.
- # Set Green Thread. Remove the comment if the THREADS_FLAG need to be set to green.
- #THREADS_FLAG=green
- #export THREADS_FLAG
- # Disabling the JIT Compiler
- # DISABLE JIT COMPILER
- #JAVA_COMPILER=NONE
- #export JAVA_COMPILER
- # Setting the Xml Encoding to English.
- # Please change if you want to parse it in other Languages.
- LANGENCODING=ISO-8859-1
- export LANGENCODING
- # Searching for java in your system.
- JAVA_EXE=`which java`
- if [ $? -ne 0 ]; then
- echo java command not found
- exit 1
- fi
-
- JAVA_HOME_DIR=`dirname $JAVA_EXE`
- JAVA_HOME_DIR=`dirname $JAVA_HOME_DIR`
- # Management Builder needs JDK environment. Setting it...
- TOOLS="lib/tools.jar"
- if [ ! -f $JAVA_HOME_DIR/$TOOLS ]
- then
- JAVA_HOME_DIR=`dirname $JAVA_HOME_DIR`
- if [ -f $JAVA_HOME_DIR/bin/java ]
- then
- PATH=$JAVA_HOME_DIR/bin:$PATH
- export PATH
- else
- echo "Java executable not found in directory $JAVA_HOME_DIR/bin "
- exit -1
- fi
- if [ ! -f $JAVA_HOME_DIR/$TOOLS ]
- then
- echo "The file $JAVA_HOME_DIR/$TOOLS is not found"
- exit -1
- fi
- fi
- # Setting CLASSPATH for the laucher.
- # This script will be called for all tools.
- # Thus the CLASSPATH present below will be set for all tools.
- CLASSPATH=./classes:./classes/AdventNetLauncher.jar:./classes/AdventNetUpdateManager.jar:./jars/xalan.jar:./jars/jaxp.jar:./jars/crimson.jar:./jars/JimiProClasses.zip:./images
- CLASSPATH=$JAVA_HOME_DIR/lib/tools.jar:$JAVA_HOME_DIR/lib/dt.jar:$CLASSPATH
- export CLASSPATH
- JAVA_CMD="$JAVA_HOME_DIR/bin/java -Xmx200M"
- export JAVA_CMD