Hi,
after some attemps I seen that my preloader is not shown using native package (Windows and Mac).
Running the jar that is runned from the file.exe instead I can see the splash screen.
This is the relevant part of my build.xml
<fx:application id="fxApplication" name="app" version="3.0" mainClass="it.app.Main" preloaderclass="it.app.preloader.SplashScreenUi" toolkit="fx" />
As said, running the jar file instead of exe file the splash screen is displayed.
I printed some logs into splash screen class: when I run the app from the jar this logs are printed, instead when I run the app from .exe file these logs are not present.
I opened a post on JavaFx forum https://community.oracle.com/message/12598501.
I'd like to know if this is a bug or if this function is not planned to work.
Thanks
after some attemps I seen that my preloader is not shown using native package (Windows and Mac).
Running the jar that is runned from the file.exe instead I can see the splash screen.
This is the relevant part of my build.xml
<fx:application id="fxApplication" name="app" version="3.0" mainClass="it.app.Main" preloaderclass="it.app.preloader.SplashScreenUi" toolkit="fx" />
As said, running the jar file instead of exe file the splash screen is displayed.
I printed some logs into splash screen class: when I run the app from the jar this logs are printed, instead when I run the app from .exe file these logs are not present.
I opened a post on JavaFx forum https://community.oracle.com/message/12598501.
I'd like to know if this is a bug or if this function is not planned to work.
Thanks
- duplicates
-
JDK-8092699 Preloader does not show when packaged as .exe. However when the Application Jar is run with java -jar it shows up.
- Resolved
-
JDK-8097980 JavaFxPackager: Pls provide the ability to use a preloader in case of starting a natively packages JavaFx application
- Closed
- relates to
-
JDK-8092699 Preloader does not show when packaged as .exe. However when the Application Jar is run with java -jar it shows up.
- Resolved