Bug#933669: openjfx: Starting a java-jfx application with java --module-path=/usr/share/java/ --add-modules=javafx.controls -jar app.jar results in the error: Error occurred during initialization of boot layer, java.lang.module.FindException: Two versions of module javafx.swing found in /usr/share/java (javafx-swing-11.jar and javafx-swing.jar)
Lars Mucha
mucha at panoma.de
Thu Aug 1 16:49:32 BST 2019
Package: openjfx
Version: 11.0.2+1-1
Severity: normal
Dear Maintainer,
I upgraded from stretch to buster last week and now I am unable the start a java application which uses jfx-classes.
With openjdk-8 the application was starte with
java -jar app.jar
Now I need to add 2 parameters to tell java, where the jfx-files are to find:
java --module-path=/usr/share/java/ --add-modules=javafx.controls -jar app.jar
The result is the following error:
Error occurred during initialization of boot layer
java.lang.module.FindException: Two versions of module javafx.swing found in /usr/share/java (javafx-swing-11.jar and javafx-swing.jar)
My current workaround is, to copy only the jar-files, not the symbolic links, to another directory and give the new directory to the java command line. After every update of the jfx-classes the files has to copied again.
-- System Information:
Debian Release: 10.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/16 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages openjfx depends on:
ii libopenjfx-java 11.0.2+1-1
Versions of packages openjfx recommends:
pn openjfx-source <none>
openjfx suggests no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list