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

SNMP编程

开发平台:

C/C++

  1. #$Id: SnmpTools.sh,v 1.15.4.1 2006/10/28 08:52:02 srikrishnan Exp $
  2. THREADS_FLAG=green
  3. export THREADS_FLAG
  4. JAVA_HOME=`which java`
  5. if [ $? -ne 0 ]; then
  6. echo java command not found
  7. exit 1
  8. fi
  9. JAVA_HOME_DIR=`dirname $JAVA_HOME`
  10. JAVA_HOME_DIR=`dirname $JAVA_HOME_DIR`
  11. # Management Builder needs JDK environment. Setting it...
  12. TOOLS="lib/tools.jar"
  13. if [ ! -f $JAVA_HOME_DIR/$TOOLS ]
  14. then
  15. JAVA_HOME_DIR=`dirname $JAVA_HOME_DIR`
  16. if [ -f $JAVA_HOME_DIR/bin/java ]
  17. then
  18. PATH=$JAVA_HOME_DIR/bin:$PATH
  19. export PATH
  20. else
  21. echo "Java executable not found in directory $JAVA_HOME_DIR/bin "
  22. exit -1
  23. fi
  24. if [ ! -f $JAVA_HOME_DIR/$TOOLS ]
  25. then
  26. echo "The file $JAVA_HOME_DIR/$TOOLS is not found"
  27. exit -1
  28. fi
  29. fi
  30. export JAVA_HOME
  31. 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
  32. export CLASSPATH
  33. $JAVA_HOME FindJavaVersion
  34. if [ $? -eq 3 ]
  35. then
  36. CLASSPATH=./jars/xalan.jar:./jars/crimson.jar:$CLASSPATH
  37. fi
  38. export CLASSPATH
  39. CLASSPATH=$JAVA_HOME_DIR/lib/tools.jar:$JAVA_HOME_DIR/lib/dt.jar:$CLASSPATH
  40. export CLASSPATH
  41. $JAVA_HOME com.adventnet.tools.launcher.Launcher -c conf