Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. 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 Maxime Gauduin (Alucryd) - Wednesday, 14 April 2021, 10:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 16
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.
Comment by Ilya Lipnitskiy (lipnitsk) - Monday, 25 May 2020, 17:58 GMT
This is still a problem with java-openjfx 14.0.2.u0-1
Comment by Ali (eyenpi) - Wednesday, 24 March 2021, 01:06 GMT
The problem is still not solved. java-openjfx 15.0.1.u1-1
Comment by Arya (ImperatorStorm) - Friday, 19 November 2021, 01:32 GMT
Can still confirm with 17.0.0.1.u1-1.
Comment by Wesley Harris (wesman420) - Thursday, 23 June 2022, 17:18 GMT
Still having this issue with 18.0.1.u2-1.
While trying to run Worldographer:
$ java --module-path /usr/lib/jvm/java-18-openjdk/lib --add-modules javafx.controls,javafx.web,javafx.swing,javafx.graphics,javafx.fxml -Xmx4G -jar Worldographer-1.52.jar -Dprism.maxvran=3G
Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package jdk.internal.jrtfs in both module jrt.fs and module java.base

Loading...