struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remy Maucherat" <r...@apache.org>
Subject Re: struts-example error on starting Tomcat
Date Sat, 10 Jun 2000 18:45:56 GMT
> Daniel Kehoe wrote:
>
> > I added jaxp.jar and parser.jar to the Tomcat lib directory.
> > Incidentally, the Tomcat.sh start script adds anything in the lib
> > directory to the classpath. For evidence, see the "Starting
> > tomcat..." messages below.
> >
>
> Note that Tomcat only adds the $TOMCAT_HOME/lib jar files to the classpath
on Unix
> systems, not on Windows systems.  Anyone who knows how to accomplish that
trick in
> the "tomcat.bat" file is welcome to propose a patch.

You can create a build.bat which looks like this :

@echo off
REM $Id: build.bat,v 1.6 2000/05/16 22:39:44 maucherat Exp $
set JAVA=%JAVA_HOME%\bin\java
set cp=
for %%i in (lib\*.jar) do call cp.bat %%i
set CP=build\classes;%JAVA_HOME%\lib\tools.jar;%CP%
%JAVA% -classpath %CP% -Dant.home=lib org.apache.tools.ant.Main %1 %2 %3 %4
%5 %6 -buildfile src/build.xml

with a second batch file (named cp.bat) :

set CP=%CP%;%1

All the jars in the lib subdirectory will be added to the classpath.

Remy


Mime
View raw message