在当前project新建一个运行项目,叫start tomcat6,各个页的设置如下:
Main:
Main class:
org.apache.catalina.startup.Bootstrap
Arguments:
Program Arguments:
-Djava.util.logging.config.file=/usr/share/apache-tomcat-
6.0.29/conf/logging.properties -
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -
Djava.endorsed.dirs=/usr/share/apache-tomcat-6.0.29/endorsed -
Dcatalina.base=/usr/share/apache-tomcat-6.0.29 -Dcatalina.home=/usr/share/apache-
tomcat-6.0.29 -Djava.io.tmpdir=/usr/share/apache-tomcat-6.0.29/temp start
(这里需要把/usr/share/apache-tomcat-6.0.29改成侬个tomcat的目录)
Working Directory:
/usr/share/apache-tomcat-6.0.29(这里改成侬个tomcat的目录)
ClassPath
Classpath:
通过Add External JARs添加${your_tomcat_dir}/bin/bootstrap.jar
延后,将这个启动项复制一份改成stop tomcat6,把Arguments最后的那个start改成stop,并勾掉
Common页里的Allocate Console
试试看,除了不能重启服务器,别的功能是不是一模一样啊
--
FROM 59.66.186.*