Can't load fxml on Macos

Eric Bresie ebresie at gmail.com
Thu Oct 22 01:35:40 UTC 2020


What is fxml set to?

Could maybe be a “classpath” type issue where it’s looking on the classpath and can’t find it.

Eric Bresie
Ebresie at gmail.com (mailto:Ebresie at gmail.com)

> On October 20, 2020 at 8:56:52 AM CDT, Davide Perini <perini.davide at dpsoftware.org (mailto:perini.davide at dpsoftware.org)> wrote:
> I'm creating my binary file using JPackage but I don't signed the binary.
> can this be the problem.
>
> why a simple line like this
>
> FXMLLoader fxmlLoader =new FXMLLoader(GUIManager.class.getResource( fxml + Constants.FXML));
>
> return null if it works on WIndows and Linux?
>
> Thanks
> Davide
>
>
>
>
>
> Il 20/10/2020 15:54, Dirk Lemmermann ha scritto:
> > I worked with JavaFX on MacOS since 2013 and except for issues related to font rendering I never got the impression that MacOS is the black sheep. I also happen to know that many of the developers that are working on JavaFX use MacOS.
> >
> > Dirk
> >
> > > On Oct 20, 2020, at 12:28 PM, Davide Perini <perini.davide at dpsoftware.org (mailto:perini.davide at dpsoftware.org)> wrote:
> > >
> > > Hi all,
> > > this code works well on both Windows and Linux running Java 15 on JavaFX 15.
> > >
> > > FXMLLoader fxmlLoader =new FXMLLoader(GUIManager.class.getResource( fxml + Constants.FXML)); return fxmlLoader.load();
> > >
> > >
> > > It doesn't work on Macos returning a nullpointer exception.
> > >
> > > Any idea? Why Macos is always the black sheep?
> > >
> > > Thanks
> > > Davide
>


More information about the openjfx-dev mailing list