You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Conor MacNeill <co...@m64.com> on 1999/11/18 14:14:41 UTC

classpath problem in built.bat files

Hi,

I am just trying to build some of the code on NT (JDK 1.1.8) and most of
the build.bat scripts fail due to a space in my classpath. Thats not
unusual on NT due to the use of the "Program Files" directory (a Sybase
JDBC driver in my case).

It can be fixed by quoting the whole classpath in the build script. For
example, for the ant build.bat I made the following change and it now
works

diff -r1.1.1.1 build.bat
3c3
< java -classpath ..\ant.jar;..\projectx-tr2.jar;%CLASSPATH%
org.apache.tools.ant.Main %1 %2 %3 %4 %5
\ No newline at end of file
---
> java -classpath "..\ant.jar;..\projectx-tr2.jar;%CLASSPATH%"
org.apache.tools.ant.Main %1 %2 %3 %4 %5
\ No newline at end of file

I guess all the other build.bat files would be similarly affected.

I'm new to this sort of distributed development. Is this the best way to
report problems, etc?

Cheers

--
Conor MacNéill
conor@m64.com
M64 Pty Limited