[Bug 461059] [NEW] Wrong version of Java

Philippe De Ryck philippe.de.ryck at skynet.be
Mon Oct 26 13:03:03 UTC 2009


Public bug reported:

I have Sun Java6 installed, but it seems to be Java 5??  Details follow

$ lsb_release -rd
Description:	Ubuntu 9.04
Release:	9.04

Installed packages:
$ aptitude search sun-java
p   sun-java5-bin                                                   - Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture dependent files) 
p   sun-java5-demo                                                  - Sun Java(TM) Development Kit (JDK) 5.0 demos and examples                 
p   sun-java5-doc                                                   - Sun JDK(TM) Documention -- integration installer                          
p   sun-java5-fonts                                                 - Lucida TrueType fonts (from the Sun JRE)                                  
p   sun-java5-jdk                                                   - Sun Java(TM) Development Kit (JDK) 5.0                                    
p   sun-java5-jre                                                   - Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture independent files
p   sun-java5-plugin                                                - The Java(TM) Plug-in, Java SE 5.0                                         
p   sun-java5-source                                                - Sun Java(TM) Development Kit (JDK) 5.0 source files                       
i A sun-java6-bin                                                   - Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)   
p   sun-java6-demo                                                  - Sun Java(TM) Development Kit (JDK) 6 demos and examples                   
p   sun-java6-doc                                                   - Sun JDK(TM) Documention -- integration installer                          
p   sun-java6-fonts                                                 - Lucida TrueType fonts (from the Sun JRE)                                  
p   sun-java6-javadb                                                - Java(TM) DB, Sun Microsystems' distribution of Apache Derby               
i   sun-java6-jdk                                                   - Sun Java(TM) Development Kit (JDK) 6                                      
i A sun-java6-jre                                                   - Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files) 
i   sun-java6-plugin                                                - The Java(TM) Plug-in, Java SE 6                                           
p   sun-java6-source                                                - Sun Java(TM) Development Kit (JDK) 6 source files                         
p   sun-javadb-client                                               - Java DB client                                                            
p   sun-javadb-common                                               - Java DB common files                                                      
p   sun-javadb-core                                                 - Java DB core                                                              
p   sun-javadb-demo                                                 - Java DB demo                                                              
p   sun-javadb-doc                                                  - Java DB documentation                                                     
p   sun-javadb-javadoc                                              - Java DB javadoc                   

Package details:
$ aptitude show sun-java6-jre
Package: sun-java6-jre
State: installed
Automatically installed: yes
Version: 6-16-0ubuntu1.9.04

$ aptitude show sun-java6-jdk
Package: sun-java6-jdk
State: installed
Automatically installed: no
Version: 6-16-0ubuntu1.9.04

$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 2009-09-01 14:42 /usr/bin/java -> /etc/alternatives/java

$ ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 36 2009-10-13 15:33 /etc/alternatives/java -> /usr/lib/jvm/java-6-sun/jre/bin/java

$ ls -l /usr/lib/jvm/java-6-sun/jre/bin/java
-rwxr-xr-x 1 root root 65076 2007-05-02 13:07 /usr/lib/jvm/java-6-sun/jre/bin/java

$ /usr/lib/jvm/java-6-sun/jre/bin/java -version
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)

==> DEFINITELY WRONG

What has happened here? I stumbled on this problem when trying to
compile google Caja, which requires JDK6

Philippe

** Affects: sun-java6 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Wrong version of Java
https://bugs.launchpad.net/bugs/461059
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list