-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 6/3/2009 11:31 AM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
>> Subject: Re: How to reference Shared Libraries with TOMCAT
>> 
>> # First clear out the user classpath CLASSPATH=
> 
> But not on Windows.  The corresponding Windows script only sets
> CLASSPATH if running with a JDK and it can find tools.jar

No, it doesn't: it looks for either the JRE or the JDK and bails out
otherwise. After that, this occurs, without precondition (checked
versions 5.5.26):

set CLASSPATH=%JAVA_HOME%\lib\tools.jar

Yes, it's silly that tools.jar is included in the CLASSPATH, but the
upshot is that any pre-set CLASSPATH is killed.

I don't know how win32 services are affected: they are probably toast.

UPDATE:
I checked 6.0.18 and it appears that the script has been changed to
reflect your assertion:

"
if not exist "%JAVA_HOME%\lib\tools.jar" goto noJavac
set CLASSPATH=%JAVA_HOME%\lib\tools.jar
:noJavac
"

That's certainly odd.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkon/dgACgkQ9CaO5/Lv0PAjNACgo0kU5ySzmJG2DD9MEydks0MV
R94AoIvCFH7XTOi1fQzmg1kaEASzwjD3
=rjth
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to