Opened 5 weeks ago

Closed 5 weeks 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 =
java-64 = 9
java-9 =
java-9-openjdk =
java-9-openjdk(x86-64) =
java-fonts =
java-openjdk =
java-openjdk-64 =
jre = 9
jre-64 = 9
jre-9 =
jre-9-openjdk =
jre-9-openjdk-64 =
jre-openjdk =
jre-openjdk-64 =

Attachments (0)

Change History (5)

comment:1 Changed 5 weeks ago by anonymous

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 Changed 5 weeks ago by bastiK

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 5 weeks ago by bastiK (previous) (diff)

comment:3 Changed 5 weeks ago by Don-vip

Keywords: java9 added
Milestone: 17.09

comment:4 Changed 5 weeks ago by Don-vip

Description: modified (diff)

comment:5 Changed 5 weeks ago by Don-vip

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
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.