Tomcat6 Problem (wrong JVM)

Rick Bragg rbragg at
Sun Jan 17 19:46:22 UTC 2010


I have a problem running tomcat6
after installing it via apt-get, it seems that tomcat is running the
wrong version of the JVM

My system info:
OS: Ubuntu Hardy LTS version 8.04 - 2.6.24-16-server amd64
Tomcat: Apache Tomcat/6.0.18

According to #java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)

However, after firing up tomcat with /etc/init.d/tomcat6 start,
according to the "manager" page
it is using a different version of the JVM

JVM: 1.6.0_0-b11

How can I make sure that Tomcat uses the right JVM?

I ran as root:
update-java-alternatives -s java-6-sun

ls -l /usr/lib/jvm/
total 12
drwxr-xr-x 5 root root 4096 2010-01-13 10:52 java-1.5.0-gcj-4.2-
drwxr-xr-x 5 root root 4096 2010-01-17 14:39 java-6-openjdk
lrwxrwxrwx 1 root root   19 2010-01-15 11:59 java-6-sun ->
drwxr-xr-x 8 root root 4096 2010-01-15 11:59 java-6-sun-
lrwxrwxrwx 1 root root   26 2008-05-03 17:31 java-gcj ->

Where is version 1.6.0_0-b11 coming from? 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5489 bytes
Desc: not available
URL: <>

More information about the ubuntu-users mailing list