startup.bat :@echo off if "%OS%" == "Windows_NT" setlocal rem --------------------------------------------------------------------------- rem Start script for the CATALINA Server rem rem $Id: startup.bat,v 1.4 2002/08/04 18:19:43 patrickl Exp $ rem ---------------------------------------------------------------------------rem Guess CATALINA_HOME if not defined if not "%CATALINA_HOME%" == "" goto gotHome set CATALINA_HOME=. if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome set CATALINA_HOME=.. :gotHome if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome echo The CATALINA_HOME environment variable is not defined correctly echo This environment variable is needed to run this program goto end :okHomeset EXECUTABLE=%CATALINA_HOME%\bin\catalina.batrem Check that target executable exists if exist "%EXECUTABLE%" goto okExec echo Cannot find %EXECUTABLE% echo This file is needed to run this program goto end :okExecrem Get remaining unshifted command line arguments and save them in the set CMD_LINE_ARGS= :setArgs if ""%1""=="""" goto doneSetArgs set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1 shift goto setArgs :doneSetArgsrem call "%EXECUTABLE%" start %CMD_LINE_ARGS% call "%EXECUTABLE%" run %CMD_LINE_ARGS% pause :end不知道有什么问题。
2、我停止了oracle的所有服务,运行tomcat一样的错误。
这个可以正常启动,就是开始--程序菜单里面的启动不了,一闪就过。
管理工具--服务--Apache Tomcat--右键--启动--提示上面的错误。那为什么我的\startup.bat又可以启动呢?
---------
已经装了n次了,版本都换了好几个了,就是不行。
D:\Program Files\Tomcat 5.0\bin\tomcat.exe 不能够启动,一闪就过。
D:\Program Files\Tomcat 5.0\bin\startup.bat 可以启动。有谁还可以帮帮我啊!!!!
我的问题是tomcat.exe为什么启动不了。
if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Start script for the CATALINA Server
rem
rem $Id: startup.bat,v 1.4 2002/08/04 18:19:43 patrickl Exp $
rem ---------------------------------------------------------------------------rem Guess CATALINA_HOME if not defined
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=.
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
set CATALINA_HOME=..
:gotHome
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHomeset EXECUTABLE=%CATALINA_HOME%\bin\catalina.batrem Check that target executable exists
if exist "%EXECUTABLE%" goto okExec
echo Cannot find %EXECUTABLE%
echo This file is needed to run this program
goto end
:okExecrem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgsrem call "%EXECUTABLE%" start %CMD_LINE_ARGS%
call "%EXECUTABLE%" run %CMD_LINE_ARGS%
pause
:end不知道有什么问题。
---
如何设置?请指教。
--
我按照你的方法试了,还是老样子。
如果已经占用改一下端口然后重起tomcat就可以了。
1、卸载tomcat与jdk
2、重新安装jdk
3、重新安装tomcat原来tomcat重新安装解决不了问题,jdk重装后就好了。