Bug 1074162

Summary: java-9-openjdk-headless: jrt-fs.jar not compatible with Java 8
Product: [openSUSE] openSUSE Tumbleweed Reporter: m k463 <k463>
Component: JavaAssignee: Fridrich Strba <fstrba>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: postadal
Version: Current   
Target Milestone: ---   
Hardware: All   
OS: All   
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description m k463 2017-12-28 06:56:33 UTC
The `jrt-fs.jar` shipped in `java-9-openjdk-headless` package is not compatible with Java 8, which is apparently necessary for some development tools that themselves run on Java 8 to be able to use the Java 9 JDK shipped in this package.

One example of this is Intellij IDEA, which means currently it's unable to use openSUSE provided Java 9 JDK as a project JDK.

A detailed explanation of the issue can be found on OpenJDK bugtracker [1] and also a test program and steps to reproduce can be found on Ubuntu bugtracker for their corresponding package [2].

The steps are:

1. zypper in java-9-openjdk-headless java-1_8_0-openjdk-headless
2. download `ReadJrt.java` from [2]
3. /usr/lib64/jvm/java-1.8.0/bin/javac ReadJrt.java
4. /usr/lib64/jvm/java-1.8.0/bin/java ReadJrt /usr/lib64/jvm/java-9/

[1] https://bugs.openjdk.java.net/browse/JDK-8174808
[2] https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1727002
Comment 1 m k463 2017-12-28 07:16:27 UTC
Also relevant bug in Intellij IDEA: https://youtrack.jetbrains.com/issue/IDEA-179481
Comment 2 Petr Ostadal 2022-04-07 08:54:34 UTC