首先检查端口号是否重复
然后设置setclasspath.bat文件
rem In debug mode we need a real JDK (JAVA_HOME)
if ""%1"" == ""debug"" goto needJavaHomeset JAVA_HOME=D:\apache-tomcat-7.0.67-sms-display\JDK8x64 //jdk自己的路径set JRE_HOME=D:\apache-tomcat-7.0.67-sms-display\JDK8x64\jre //jre自己的路径rem Otherwise either JRE or JDK are fineif not "%JRE_HOME%" == "" goto gotJreHomeif not "%JAVA_HOME%" == "" goto gotJavaHomeecho Neither the JAVA_HOME nor the JRE_HOME environment variable is definedecho At least one of these environment variable is needed to run this programgoto exit