Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preloader is not working with 8.1.2 plugin. #80

Closed
Anvay-webonise opened this issue Dec 2, 2014 · 4 comments
Closed

Preloader is not working with 8.1.2 plugin. #80

Anvay-webonise opened this issue Dec 2, 2014 · 4 comments

Comments

@Anvay-webonise
Copy link

we are using preloader for splash screen and its working perfectly fine with 2.0 plugin(with java 7) now with 8.1.2 (java 8) its not working.
.msi gets generated but splash screen is not working.

@aliebelt
Copy link

aliebelt commented Dec 2, 2014

I had the same problem, but it seems that preloader is depracated in JavaFX 8 (or maybe only in the plugin, I don't know).
Have a look into:
https://github.com/zonski/javafx-maven-plugin/blob/master/src/main/java/com/zenjava/javafx/maven/plugin/NativeMojo.java#L164

@Anvay-webonise
Copy link
Author

Thanks @aliebelt.
JavaFx 8 supports for preloader https://docs.oracle.com/javase/8/javafx/api/javafx/application/Preloader.html
I think Its missing from plugin only.

@FibreFoX
Copy link
Member

FibreFoX commented Jan 3, 2015

I came across this issue myself, but its not an issue of this maven-plugin, its more a problem with the generated exe-file (which comes from javafxpackager). The problem is, as far as i understood the discussion, known but not really dealt with:
http://mail.openjdk.java.net/pipermail/openjfx-dev/2014-January/012296.html

But there is another thing i am confused with: when using mvn jfx:run the preloader is skipped, just by running the generated xyz-jfx.jar itself the preloader is executed.
See: https://github.com/zonski/javafx-maven-plugin/blob/master/src/main/java/com/zenjava/javafx/maven/plugin/RunMojo.java#L84

@FibreFoX
Copy link
Member

This is closed, because its not handled within javafxpackager/native package app. Showing a splash-screen should be possible, but preloader are capable of more (http://stackoverflow.com/questions/15126210/how-to-use-javafx-preloader-with-stand-alone-application-in-eclipse).

I must admit, this is something very undocumented, but please re-open if you found an working example using native javafxpackager-tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants