> From: Lee Hammond [mailto:[EMAIL PROTECTED]
> Subject: System ClassLoader problem on Linux running Hipergate on Tomcat?
> 
> Well, I've got J2EE in it's default place /opt/ and Tomcat 5.0.30
> in /opt too and everything is now working fine.

Tomcat doesn't need the J2EE download, and, in some situations, it can cause 
problems.  (Don't know if Hipergate needs anything from it, but I would hope 
not.)  You should install just the JDK (it has its own JRE), and JAVA_HOME 
should point to that.

>       Unable to find a javac compiler;
>       com.sun.tools.javac.Main is not on the classpath.
>       Perhaps JAVA_HOME does not point to the JDK

More evidence that you have JAVA_HOME pointing to the wrong place, perhaps to 
the JRE or J2EE instead of the JDK.  Need to make sure that 
/<appropriate_path>/tools.jar appears somewhere in the classpath used to launch 
Tomcat.  Do NOT use the CLASSPATH environment variable; the only jars you need 
on the eventual -cp parameter used to start Tomcat are tools.jar (from the JDK) 
and bootstrap.jar (from the Tomcat bin directory).

> It seems to be a system classLoader problem, which (according to:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

If you're running 5.0.30, why are you looking at the doc for 4.1?

Can you run javac yourself?  I.e., does 
        java -cp $JAVA_HOME/lib/tools.jar com.sun.tools.javac.Main
do anything useful?  (It should show you a list of the javac options.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to