标签:ar os sp java on art bs as tt
在tomcat启动中过报错窗口一般会自动关闭,导致我们没办法看清楚报错的信息。现解决方法如下:
1、找到catalina.bat,并用文本方式打开;
2、找到 if not "%OS%" == "Windows_NT" goto noTitle处,会看到下面一段脚本:
if not "%OS%" == "Windows_NT" goto noTitle set _EXECJAVA=start "Tomcat" %_RUNJAVA% goto gotTitle :noTitle set _EXECJAVA=start %_RUNJAVA% :gotTitle if not ""%1"" == ""-security"" goto execCmd shift echo Using Security Manager set SECURITY_POLICY_FILE=%CATALINA_BASE%\conf\catalina.policy goto execCmd
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
set _EXECJAVA=start %_RUNJAVA%
为
set _EXECJAVA=start /b "Tomcat" %_RUNJAVA%
set _EXECJAVA=start /b %_RUNJAVA%
保存退出,启动start.bat即可。
标签:ar os sp java on art bs as tt
原文地址:http://my.oschina.net/xiaoyang818/blog/352717