你的tomcat装在什么地方?
进入tomcat的目录里,找到statup.bat的文件,打开编辑,
在行call tomcat start的前面加上两行:
SET TOMCAT_HOME=c:\tomcat 和SET JAVA_HOME=c:\jdk1.3.1

解决方案 »

  1.   

    is this right..
    @echo off
    rem $Id: startup.bat,v 1.7 2000/03/31 19:40:02 craigmcc Exp $
    rem Startup batch file for tomcat servner.rem This batch file written and tested under Windows NT
    rem Improvements to this file are welcome
    if not "%TOMCAT_HOME%" == "" goto startSET TOMCAT_HOME=.
    if exist %TOMCAT_HOME%\bin\tomcat.bat goto startSET TOMCAT_HOME=..
    if exist %TOMCAT_HOME%\bin\tomcat.bat goto startSET TOMCAT_HOME=
    echo Unable to determine the value of TOMCAT_HOME.
    goto eof:start
    set JAVA_HOME=c:\jdk
    set TOMCAT_HOME=c:\tomcat
    call %TOMCAT_HOME%\bin\tomcat start %1 %2 %3 %4 %5 %6 %7 %8 %9:eof