Re: JPackage and JavaFX
Just for reference, I was using maven to bundle JavaFX, using OpenJDK I had that error, using AdoptOpenJDK solved the problem. Regards, Davide Il 20/08/2020 17.07, Kevin Rushforth ha scritto: That should be "This list is *not* the right place..." On 8/20/2020 8:06 AM, Kevin Rushforth wrote: This list is be the right place to discuss the javapackager tool (regardless of whether or not it is a fork of the old java(fx)packager tool that used to be part of openjfx). -- Kevin On 8/20/2020 7:12 AM, Bardot Jérôme wrote: i personaly try to use javapackager https://github.com/fvarrui/JavaPackager for me this tool need to be hightlight and it need feedback On 20/08/2020 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
Re: JPackage and JavaFX
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
Re: JPackage and JavaFX
This list is be the right place to discuss the javapackager tool (regardless of whether or not it is a fork of the old java(fx)packager tool that used to be part of openjfx). -- Kevin On 8/20/2020 7:12 AM, Bardot Jérôme wrote: i personaly try to use javapackager https://github.com/fvarrui/JavaPackager for me this tool need to be hightlight and it need feedback On 20/08/2020 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
Re: JPackage and JavaFX
That should be "This list is *not* the right place..." On 8/20/2020 8:06 AM, Kevin Rushforth wrote: This list is be the right place to discuss the javapackager tool (regardless of whether or not it is a fork of the old java(fx)packager tool that used to be part of openjfx). -- Kevin On 8/20/2020 7:12 AM, Bardot Jérôme wrote: i personaly try to use javapackager https://github.com/fvarrui/JavaPackager for me this tool need to be hightlight and it need feedback On 20/08/2020 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
Re: JPackage and JavaFX
i personaly try to use javapackager https://github.com/fvarrui/JavaPackager for me this tool need to be hightlight and it need feedback On 20/08/2020 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
Re: JPackage and JavaFX
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
Re: JPackage and JavaFX
I've not seen the module FindException with jfr before, but one thing I do see is that you will need to use the JavaFX jmods rather than the sdk. Otherwise, jlink (which is invoked by jpackage) won't produce a runnable application. -- Kevin On 8/19/2020 5:52 PM, 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
JPackage and JavaFX
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