Installation of the package breaks automatic version detection

Bug #155852 reported by Daniel Cardin
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

the ubuntu packages for java install to /usr/lib/jvm using a pattern like this :

java-6-sun (symlink)
java-6-sun-1.6.0.03

However, proper jvm detection is done using the pattern

jdkVERSION
jreVERSION

Second problem, the directory is named [...].0.03 where the convention seems to be to use an underscore.

so at the very least there should be a symlink jre1.6.0_03 to java-6-sun-1.6.0.03

This will make the following command work correctly :

$ java -version:1.6+ -version

java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)

instead of:
Unable to locate JRE meeting specification "1.6+"

Revision history for this message
Matthias Klose (doko) wrote :

where is this naming convention used/followed?

Revision history for this message
Daniel Cardin (daniel-cardin) wrote :

I am trying to find information about this but it's very scarce. I think I will have to look at the actual source code for the launcher.

I can only tell you the actual "behavior" for now. If the directory has the right name, java picks it up.

Revision history for this message
James Stansell (jamesstansell) wrote :

"-version:1.6+" is documented by Sun somewhere - I haven't looked at it for a year or more now. Hmm - http://java.sun.com/javase/6/docs/technotes/tools/solaris/java.html has a little bit about it.

Revision history for this message
Daniel Cardin (daniel-cardin) wrote :

It documents the option's format, not the actual process of locating the jvm though.
that's what I'm looking for

Revision history for this message
Daniel Cardin (daniel-cardin) wrote :

bump. this is still the case with Jaunty

Revision history for this message
Noah (noah-noah) wrote :

I just ran into this problem with Ubuntu 9.04 2.6.28-15-generic.

Revision history for this message
Benjamin Redling (benjamin-rampe-deactivatedaccount) wrote :

It's the same with Lucid Lynx .

Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported should be reproducible with the live environment of the Desktop CD development release - Maverick Meerkat. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find more about the development release at http://www.ubuntu.com/testing/. Thanks again and we appreciate your help.

Changed in sun-java6 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.