Erro ao startar o Tomcat

Ambiente: Windows XP
JRE: j2re1.4.2_02
Tomcat: jakarta-tomcat-4.1.29
Variáveis de ambiente:
[list]JAVA_HOME: C:Arquivos de programasJavaj2re1.4.2_02
TOMCAT_HOME: C:jakarta-tomcat-4.1.29
CATALINA_HOME: %TOMCAT_HOME%
CLASSPATH: .;%JAVA_HOME%
PATH: %SystemRoot%system32;%SystemRoot%;%SystemRoot%system32WBEM;%JAVA_HOME%in;%TOMCAT_HOME%in[/list]

Quando executo o startup.bat aparece a seguinte mensagem: O windows não pode encontrar o arquivo ‘-Dsun.io.useCanonCaches=false’.

Alguém tem alguma idéia do que é isso?

Valeu.
Marcus Gonçalves

Você possue o Java SDK instalado?
Se sim a você deve setar JAVA_HOME com o path que Java SDK está instalado.
Se não, então você precisa fazer download do SDK e setar a JAVA_HOME com o path que Java SDK está instalado.

leonardom,
eu irei apenas rodar uma aplicação, portanto, só precisarei do jre. Pelo que eu sei, o jsdk só é necessário para desenvolvimento.
Por favor me corrija se eu estiver errado.

Respondendo a sua pergunta, não tenho o jsdk instalado.

Cara, parece que o Tomcat necessita da JSDK para funcionar, não tenho muita certeza (Alguém me corrija se estiver errado).

           Running The Tomcat 4.0 Servlet/JSP Container
           ============================================

This subproject contains Tomcat 4.0, a server that implements the Servlet 2.3
and JSP 1.2 Specifications from Java Software. In order to install and run
this container, you must do the following:

(0) Download and Install a Java Development Kit

  • Download a Java Development Kit (JDK) release (version 1.2 or later) from:

    http://java.sun.com/j2se/

  • Install the JDK according to the instructions included with the release.

  • Set an environment variable JAVA_HOME to the pathname of the directory
    into which you installed the JDK release.

(1) Download and Install the Tomcat 4.0 Binary Distribution

NOTE: As an alternative to downloading a binary distribution, you can create
your own from the Tomcat source repository, as described in “BUILDING.txt”.
If you do this, the value to use for “${catalina.home}” will be the “dist”
subdirectory of your source distribution.

  • Download a binary distribution of Tomcat from:

    http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/

    On a Windows platform, you will need:
    jakarta-tomcat-4.0-YYYYMMDD.zip

    On a Unix platform, you will need:
    jakarta-tomcat-4.0-YYYYMMDD.zip

  • Unpack the binary distribution into a convenient location so that the
    distribution resides in its own directory (conventionally named
    “jakarta-tomcat-4.0”). For the purposes of the remainder of this document,
    the symbolic name “${catalina.home}” is used to refer to the full
    pathname of the release directory.

(continue)

Sim, o Tomcat precisa de uma JDK, pq ele precisa compilar os JSPs, e a JRE não vem com compilador… :roll:

Motivo besta né? :smiley:

É um motivo justo.

Valeu pelas dicas!