MibBrowser.sh
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:1k
- #!/bin/sh
- # Set the java home directory,
- # For example: If jdk1.2 is installed in your machine in the /usr/jdk1.2
- # directory then set JAVA_HOME_DIR=/usr/jdk1.2
- cd ../bin/
- . setallEnv.sh
- cd ../MibBrowser
- if [ -z ${JAVA_HOME_DIR} ]
- then
- echo
- echo "** Error: Edit the 'JAVA_HOME_DIR' variable in this script file to point to the java directory."
- echo "For example: If jdk1.2 is installed in your machine in the /usr/jdk1.2"
- echo "directory then set JAVA_HOME_DIR=/usr/jdk1.2 in this script file."
- echo "The 'JAVA_HOME_DIR' directory should contain the sub-directory 'bin'."
- echo "The java executable should be present in the sub-directory bin."
- echo
- else
- # Set the PATH
- PATH=${JAVA_HOME_DIR}/bin:${PATH}
- # Set the CLASSPATH
- CLASSPATH=.:../classes:../jars/AdventNetLogging.jar:../jars/AdventNetUtils.jar:../jars/AdventNetSnmp.jar:../jars/MibBrowser.jar:../jars/JimiProClasses.zip:../jars/ApiUtils.jar:../jars/AdventNetCCLXMLParser.jar:../jars/AdventNetCCLUtils.jar:../jars/jasper.jar:../jars/swingall.jar:../jars/mysql_comp.jar:../jars/BeanBuilderClasses.jar:$CLASSPATH
- export CLASSPATH
- $JAVA_CMD FindJavaVersion
- if [ $? -eq 3 ]
- then
- CLASSPATH=../jars/xalan.jar:../jars/crimson.jar:$CLASSPATH
- fi
- export PATH CLASSPATH
- $JAVA_CMD MibBrowserApplication -h localhost -c public
- fi