Changing the JVM that Tomcat uses

Gary Benson gbenson at redhat.com
Thu May 27 10:05:28 UTC 2004


Jan-Pieter van den Heuvel wrote:
> I'm having a problem changing the JVM that Tomcat uses from the one
> from the Free Software Foundation to the one from Sun. I've
> installed the J2SDK1.4.2_04 from Sun and have added the JAVA_HOME
> environment variable ( = /usr/java/j2sdk1.4.2_04) to
> /etc/profile. But after restarting Tomcat, it still uses the JVM
> from the Free Software Foundation. How can I change this?  When i
> use the command 'env' i can see that the JAVA_HOME environment
> variable is present and pointing to the correct location.

If you're using the gcj-built Tomcat from FC2 then you can't change
the JVM it uses.  I'll probably provide some way to run Fedora Tomcat
with a 'normal' JVM for FC3, but it's not recommended in FC2 because
some of the jarfiles contain bad bytecode.

Gary





More information about the fedora-list mailing list