Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#64121 - [java-openjfx] Installation directory changed to java-13-openjdk from java-13-openjfx

Attached to Project: Arch Linux
Opened by Omar Emara (OmarEmaraDev) - Sunday, 13 October 2019, 18:28 GMT
Last edited by freswa (frederik) - Friday, 21 February 2020, 21:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Maxime Gauduin (Alucryd)
Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 6
Private No

Details

Description:

The latest commit to the java-openjfx package (upgpkg: java-openjfx 13.u14-1)
changed the installation directory from java-13-openjfx to java-13-openjdk.
This change is problematic because the java-13-openjfx/lib directory is
typically added to the --module-path, and changing that to the sdk path
would result in the non-modular jar files to be treated as automatic
modules, which would cause a lot of conflicts between the modules.

This issue was reported and fixed before, but the mentioned commit reverted that
fix, see:

https://bbs.archlinux.org/viewtopic.php?pid=1862604#p1862604
https://stackoverflow.com/questions/42986287/

Steps to reproduce:

Compile and run the HelloFX program from JFX:

java --module-path /usr/lib/jvm/java-13-openjdk/lib --add-modules javafx.controls HelloFX

The following error is produced:

java.lang.LayerInstantiationException: Package jdk.internal.jrtfs in both module java.base and module jrt.fs
This task depends upon

Comment by Levente Polyak (anthraxx) - Sunday, 13 October 2019, 23:01 GMT
This issue was in fact never properly reported. The only place of truth for reports in the bug tracker and nothing else.
Comment by Omar Emara (OmarEmaraDev) - Monday, 14 October 2019, 08:51 GMT
Sorry, my bad. I was under the impression that it was reported, but never confirmed it.
Comment by skyarch (skyarch) - Friday, 18 October 2019, 07:38 GMT
Yeah, I have this problem too.

when add --module-path /usr/lib/jvm/java-13-openjdk/lib ,will show following error

Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package jdk.internal.jrtfs in both module jrt.fs and module java.base
Comment by Ilya Lipnitskiy (lipnitsk) - Tuesday, 22 October 2019, 15:44 GMT
Similar error while trying to make asciidocfx v1.7.1 work:

Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package jdk.internal.jimage in both module jrt.fs and module java.base

Can we please fix this to make the java-openjfx package usable?
Comment by Ilya Lipnitskiy (lipnitsk) - Wednesday, 23 October 2019, 00:22 GMT
Attached patch should fix it.
Comment by Omar Emara (OmarEmaraDev) - Sunday, 03 November 2019, 08:57 GMT
Any news on this?
Comment by Ilya Lipnitskiy (lipnitsk) - Monday, 23 March 2020, 20:10 GMT
java11-openjfx has the same issue and there is a package in 'testing' that should fix it (java11-openjfx 11.0.3.u1-2). Any chance to fix this, it's been more than 6 months now...
Comment by Michaël Cadilhac (cadilhac) - Sunday, 05 April 2020, 18:49 GMT
This is still a problem. FWIW, I agree with Ilya's patch.

Loading...