On Fri, 9 Apr 2021 16:02:36 GMT, Kevin Rushforth <k...@openjdk.org> wrote:
>> That's how I ran it, too. I did it from a clean repo. This was on Windows, >> but shouldn't matter. > > I just tried it on Linux and get the same failure: > > Caused by: java.lang.NullPointerException: Cannot invoke > "java.net.URL.toExternalForm()" because the return value of > "java.lang.Class.getResource(String)" is null > at > mymod/myapp7.LocalStorageAccessWithModuleLayer.start(LocalStorageAccessWithModuleLayer.java:92) > at > javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:849) > at > javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:474) > at > javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:447) > at > java.base/java.security.AccessController.doPrivileged(AccessController.java:391) > at > javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:446) > at > javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96) > at > javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) > at > javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277) > ... 1 more I get the same error. For some reason, the resource isn't found when it's on the root. Moving it inside the app7 package work. ------------- PR: https://git.openjdk.java.net/jfx/pull/458