start_server.bat
上传用户:aonuowh
上传日期:2021-05-23
资源大小:35390k
文件大小:1k
- call setallEnv.bat
- cd ..
- rem This batch file starts a web server and SAS
- rem Please make sure you have set the java home directory, For example: If jdk1.2 is installed in your machine in the C:jdk1.2 directory then set JAVA_HOME_DIR=C:jdk1.2
- rem set JAVA_HOME=c:jdk1.2
- set classpath=.;%SNMP_HOME%classes;%SNMP_HOME%jarsAdventNetSnmp.jar;%SNMP_HOME%jarsAdventNetLogging.jar;%SNMP_HOME%jarsAdventNetSAS.jar;%SNMP_HOME%jarsAdventNetHttpMibBrowser.jar;%SNMP_HOME%examplessasappssasadvanced;%SNMP_HOME%tomcatlibANT.JAR;%SNMP_HOME%tomcatlibJAXP.JAR;%SNMP_HOME%tomcatlibSERVLET.JAR;%SNMP_HOME%tomcatlibPARSER.JAR;%SNMP_HOME%tomcatlibWEBSER~1.JAR;%SNMP_HOME%tomcatlibJASPER.JAR;%JAVA_HOME%libtools.jar;%SNMP_HOME%jarsmysql_comp.jar;%classpath%
- java -version
- java -Dtomcat.home=%SNMP_HOME%tomcat StartServer -class org.apache.tomcat.startup.Tomcat -class com.adventnet.snmp.sas.SAServer -server_client com.adventnet.snmp.sas.TestSvrClient
- rem The following line can be uncommented in case of using examples
- rem in the sasapps directory
- rem java -Dtomcat.home=%SNMP_HOME%tomcat StartServer -class org.apache.tomcat.startup.Tomcat -class com.adventnet.snmp.sas.SAServer -server_client com.adventnet.snmp.sas.TestSvrClient -session_client com.adventnet.snmp.sas.TestSsnClient