SnmpTools.sh
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:1k
- #$Id: SnmpTools.sh,v 1.15.4.1 2006/10/28 08:52:02 srikrishnan Exp $
- THREADS_FLAG=green
- export THREADS_FLAG
- JAVA_HOME=`which java`
- if [ $? -ne 0 ]; then
- echo java command not found
- exit 1
- fi
- JAVA_HOME_DIR=`dirname $JAVA_HOME`
- 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
- export JAVA_HOME
- CLASSPATH=./classes:./jars:./studiojars:./images:./jars/jaxp.jar:./jars/JimiProClasses.zip:./classes/:./jars/AdventNetUpdateManager.jar:$JAVA_HOME/lib/tools.jar:./studiojars/AdventNetSnmpStudio.jar:./studiojars/AdventNetSnmpStudioApi.jar:./studiojars/AdventNetProBeans.jar:./studiojars/AdventNetRenderersGallery.jar:./studiojars/AdventNetProBeansBeanInfo.jar:./jars/AdventNetSnmp.jar:./jars/AdventNetLogging.jar:./jars/AdventNetSAS.jar:./examples/sasapps/sasadvanced
- export CLASSPATH
- $JAVA_HOME FindJavaVersion
- if [ $? -eq 3 ]
- then
- CLASSPATH=./jars/xalan.jar:./jars/crimson.jar:$CLASSPATH
- fi
- export CLASSPATH
- CLASSPATH=$JAVA_HOME_DIR/lib/tools.jar:$JAVA_HOME_DIR/lib/dt.jar:$CLASSPATH
- export CLASSPATH
- $JAVA_HOME com.adventnet.tools.launcher.Launcher -c conf