-
Notifications
You must be signed in to change notification settings - Fork 19
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
Using a splash screen interferes with the class loader used by JavaFX #66
Comments
Perhaps the |
Yes, Preloaders are the way to do it for JavaFX applications. But then I guess it becomes my responsibility to provide it ....? |
This is good to know. Since the installer app uses a splash image, I'll have to keep this in mind as we add support for installer themes written in JavaFX. |
I added a note to the manual:
Will leave this open, as there may be other solutions for splash-screen that I can explore, such as spawning a separate "splash screen" process from the launcher to display the splashscreen while the app loads. |
Ok one year later I'm facing the same issue, is there any known workaround beside removing the splash screen? Is there anything we could help? |
Our app was working perfectly fine, then I added a splash screen. After that the default class loader used by JavaFX was null. See method getDefaultClassLoader() in FXMLLoader.java. This caused our app to crash as soon as it tried to create a view via FXML. At first I thought it is caused by the short snippet used to close the splash screen (as it probably ran on the wrong thread), but even after commenting that out the app would still crash. It was only after I completely removed the splash screen from the jdeploy package that our app started working again.
The text was updated successfully, but these errors were encountered: