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 Toolybird (Toolybird) - Friday, 24 November 2023, 21:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Levente Polyak (anthraxx)
freswa (frederik)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 20
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

Closed by  Toolybird (Toolybird)
Friday, 24 November 2023, 21:23 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Pkg dropped to the AUR
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
Comment by Arya (ImperatorStorm) - Saturday, 04 February 2023, 23:53 GMT
Can still confirm with java17-openjfx-17.0.5.u1-1 and java-openjfx-19.0.2.1.u1-1. Ilya's patch fixes the issue.

Please fix, this has been open for more than 3 years now.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by David X (Maiyun) - Sunday, 27 August 2023, 15:56 GMT
It appears the fix was reverted in java-openjfx-20. I tried using Worldographer today and get the same error as mentioned a few comments above.
Comment by Odin Vex (OdinVex) - Friday, 29 September 2023, 20:05 GMT
@anthraxx Any thoughts?

Edit: Never-mind, I'm self-hosting my own AUR with complete overrides, so I'm using the patch regardless. I keep running into packages that need patches and Issues in a situation like this one hold up fixes.

Loading...