MibBrowser.sh
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:1k
源码类别:

SNMP编程

开发平台:

C/C++

  1. #!/bin/sh
  2. # Set the java home directory, 
  3. # For example: If jdk1.2 is installed in your machine in the /usr/jdk1.2 
  4. # directory then set JAVA_HOME_DIR=/usr/jdk1.2
  5. cd ../bin/
  6. . setallEnv.sh
  7. cd ../MibBrowser
  8. if [ -z  ${JAVA_HOME_DIR} ]
  9. then 
  10. echo
  11. echo "** Error: Edit the 'JAVA_HOME_DIR' variable in this script file to point to the java directory."
  12.   echo "For example: If jdk1.2 is installed in your machine in the /usr/jdk1.2"
  13. echo "directory then set JAVA_HOME_DIR=/usr/jdk1.2 in this script file."
  14. echo "The 'JAVA_HOME_DIR' directory should contain the sub-directory 'bin'."
  15. echo "The java executable should be present in the sub-directory bin."
  16. echo
  17. else
  18.    # Set the PATH
  19.    PATH=${JAVA_HOME_DIR}/bin:${PATH}
  20.    # Set the CLASSPATH
  21.    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
  22. export CLASSPATH
  23. $JAVA_CMD FindJavaVersion
  24. if [ $? -eq 3 ]
  25. then
  26. CLASSPATH=../jars/xalan.jar:../jars/crimson.jar:$CLASSPATH
  27. fi
  28.    export PATH CLASSPATH 
  29.    $JAVA_CMD MibBrowserApplication -h localhost -c public
  30. fi