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
Opened by Omar Emara (OmarEmaraDev) - Sunday, 13 October 2019, 18:28 GMT
Last edited by Toolybird (Toolybird) - Friday, 24 November 2023, 21:23 GMT
|
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
Friday, 24 November 2023, 21:23 GMT
Reason for closing: Won't fix
Additional comments about closing: Pkg dropped to the AUR
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
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?
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
Please fix, this has been open for more than 3 years now.
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.