tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to reference Shared Libraries with TOMCAT
Date Thu, 04 Jun 2009 17:01:12 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 6/3/2009 11:31 AM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:chris@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message