[CentOS] tomcat

Wed Apr 18 18:04:54 UTC 2007
Patrick <centos-list at puzzled.xs4all.nl>

On Thu, 2007-04-19 at 01:37 +0800, CentOS List wrote:
> > On Wed, 2007-04-18 at 11:19 -0500, Benjamin J. Weiss wrote:
> >> CentOS List wrote:
> >> > Hi,
> >> >
> >> > I had installed java via yum and would like to run jbilling
> >> > application and got an error.
> >> >
> >> > run.sh: Missing file: /lib/tools.jar
> >> > run.sh: Unexpected results may occur.  Make sure JAVA_HOME points to a
> >> > JDK and not a JRE.
> >> >
> >> > How can i check where is the JAVA_HOME?
> >> >
> >> > regards
> > [snip]
> >> >
> >> I normally take care of JAVA_HOME in /etc/profile in the following 
> >> manner:
> >>
> >> JAVA_HOME="/usr/local/java/j2sdk/"
> >> export JAVA_HOME
> >>
> >> I'd like to know how you installed java using yum!  I've just downloaded
> >> and installed the Java 6 SDK and broken my tomcat5...
> >
> > The JPackage RPM of sun java 1.5.0.11 seems to install the JRE in
> > /usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre
> >
> 
> I am still on 1.4.2, install via yum from Base repo
> 
> [root at beyond ~]# rpm -qa | grep java
> java-1.4.2-gcj-compat-1.4.2.0-40jpp.112
> gcc-java-4.1.1-52.el5.2
> java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp.112
> 
> Should I upgrade it?

Probably depends on the application. For example CentricCRM does not
work with the Tomcat that is compiled against the Java that's included
with CentOS4 (dunno about 5). Just try if your application works and if
it doesn't you can always get the Sun JRE/JDK from JPackage.

Regards,
Patrick