But I haven't installed JavaFX manually, I'm getting it with maven, like this:
this is the pom.xml
https://github.com/sblantipodi/firefly_luciferin/blob/master/pom.xml
as you can see I get JavaFX from maven repos.
It works on Windows.

Any idea?

Thanks
Davide

Il 20/08/2020 07.15, Tobias Oelgarte ha scritto:
I have no problem using jpackage together with JDK 14 and JavaFX 14/16 under Ubuntu 18.04.

My guess is that you run the jpackage command from a different JDK version, which loads it's own module "java.base" and references it's own module "jdk.management.jfr". This is different from the one found inside the ".. javafx-sdk-14.0.2.1/lib" directory, resulting in the hash conflict.

Tobias Oelgarte
Mail: tobias.oelga...@gmail.com

On 20.08.20 02:52, Davide Perini wrote:
Hi all,
is there someone able to use JPackage with JavaFX under ubuntu with JDK14?

When I try to use jpackage on ubuntu I get this error:

jpackage -n TestFX -i target --main-jar tmyjar-jar-with-dependencies.jar -d output --module-path /home/sblantipodi/dev/jdk/javafx-sdk-14.0.2.1/lib
WARNING: Using incubator modules: jdk.incubator.jpackage

java.lang.module.FindException: Hash of jdk.management.jfr (a405f735790e653ae6ad1ef35615c78a555389cc5076c74c52f3790a13351666) differs to expected hash (06d891a3ae65eb002ec7c3adeac782a67e5c76c5f1569cbb4e9bdace4e220f23) recorded in java.base

Any idea?

Thanks

Reply via email to