Modify

Opened 7 years ago

Closed 7 years ago

#15297 closed defect (fixed)

There is no openjdk-9-jre on openSUSE

Reported by: jirislaby@… Owned by: team
Priority: normal Milestone: 17.09
Component: Core Version:
Keywords: java9 Cc:

Description (last modified by Don-vip)

When a crash occurs, josm tries to dump jdk's version:

 Java package: openjdk-9-jre:balíček openjdk-9-jre není nainstalován

Which in Czech means "package not installed". Obviously:

    public String getJavaPackageDetails() {
        String home = System.getProperty("java.home");
        if (home.contains("java-8-openjdk") || home.contains("java-1.8.0-openjdk")) {
            return getPackageDetails("openjdk-8-jre", "java-1_8_0-openjdk", "java-1.8.0-openjdk");
        } else if (home.contains("java-9-openjdk") || home.contains("java-1.9.0-openjdk")) {
            return getPackageDetails("openjdk-9-jre", "java-1_9_0-openjdk", "java-1.9.0-openjdk");
        } else if (home.contains("icedtea")) {
            return getPackageDetails("icedtea-bin");
        } else if (home.contains("oracle")) {
            return getPackageDetails("oracle-jdk-bin", "oracle-jre-bin");
        }
        return null;
    }

The package is named java-9-openjdk on openSUSE:

rpm -q --provides java-9-openjdk
java = 9
java-1_9_0-openjdk = 9.0.0.0~181-3.1
java-64 = 9
java-9 = 9.0.0.0~181-3.1
java-9-64
java-9-openjdk = 9.0.0.0~181-3.1
java-9-openjdk(x86-64) = 9.0.0.0~181-3.1
java-fonts = 9.0.0.0~181
java-openjdk = 9.0.0.0~181-3.1
java-openjdk-64 = 9.0.0.0~181-3.1
jre = 9
jre-64 = 9
jre-9 = 9.0.0.0~181-3.1
jre-9-64
jre-9-openjdk = 9.0.0.0~181-3.1
jre-9-openjdk-64 = 9.0.0.0~181-3.1
jre-openjdk = 9.0.0.0~181-3.1
jre-openjdk-64 = 9.0.0.0~181-3.1
jre1.3.x
jre1.4.x
jre1.5.x
jre1.6.x
jre1.7.x
jre1.8.x
jre1.9.x
...

Attachments (0)

Change History (5)

comment:1 by anonymous, 7 years ago

To be precise, we have 1_8_0, but 9 is simply 9:

   | java-1_8_0-openjdk                    | OpenJDK 8 Runtime Environment
...
i+ | java-9-openjdk                        | OpenJDK Runtime Environment

comment:2 by bastiK, 7 years ago

The break statement in [12239] looks strange.

Also have you tried to run rpm with certain environment variables set? E.g. LANG=C or LC_ALL=C.

Last edited 7 years ago by bastiK (previous) (diff)

comment:3 by Don-vip, 7 years ago

Keywords: java9 added
Milestone: 17.09

comment:4 by Don-vip, 7 years ago

Description: modified (diff)

comment:5 by Don-vip, 7 years ago

Resolution: fixed
Status: newclosed

In 12830/josm:

fix #15297, fix #15298 - proper detection of java packages on rpm-based Linux systems

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.