tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Schulz <>
Subject Re: tools.jar not in CP (Tomcat 5.5.15)
Date Tue, 04 Apr 2006 00:36:10 GMT
I tried to copy tools.jar to shared/lib, but I think that the JVM itself 
might prevent that from working,
not sure about chapter and verse though.

After perusal of the source code and comparison between 4.1.31 and 
5.5.15, as well as comparing the
Windows and Unix startup scripts, I am now more or less certain that the 
problem is in,
where tools.jar is only added to the classpath if the command is 'debug' 
or 'javac' (which is not the case).
I guess javac is not an option to start catalina, as I was mistakenly 
assuming earlier, but rather refers to the Java compiler.
In essence, on Unix, you will never see tools.jar in the classpath.  The 
Windows startup scripts on the other
hand, will always have tools.jar in the classpath - hence the discrepency.

I will open a bug for this, and as a workaround remove the check in for my own needs.


Markus Schönhaber wrote:
> Martin Schulz wrote:
>> My webapps needs to access the javac compiler classes from tools.jar.
>> This appears to work on dev environment on Windows, but it doesn't
>> in a deployment environment:
>> Solaris 9
>> JDK 1.5.0_06
>> The app hits a java.lang.ClassNotFoundException:
>> According to the documentation, tools.jar should always be in the
>> class path:
> If I insert an
> into on Linux, I see that tools.jar isn't included. Maybe the docs 
> are not right (anymore?).
>> Looking at the startup scripts (I think I saw it in the doumentation too
>> somewhere) there is a 'javac' option (in, which appears
>> to be in some state of disrepair.  At least the order of arguments
>> passed from does not match how looks at the args,
>> nor does actually consume the 'javac', or evaluate it
>> as a valid command.
>> I guess I'm confused at this stage as to what to believe and how to
>> proceed.
> How about copying tools.jar to commons/lib?
> Regards
>   mks
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message