You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Couldn't run module main class at org.moditect.layrry.internal.LayersImpl.run(LayersImpl.java:139) at org.moditect.layrry.Layrry.launch(Layrry.java:56) at org.moditect.layrry.Layrry.run(Layrry.java:50) at org.moditect.layrry.launcher.LayrryLauncher.launch(LayrryLauncher.java:53) at org.moditect.layrry.launcher.LayrryLauncher.main(LayrryLauncher.java:35)Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at org.moditect.layrry.internal.LayersImpl.run(LayersImpl.java:136) ... 4 moreCaused by: java.lang.RuntimeException: Exception in Application start method at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900) at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:832)Caused by: javafx.fxml.LoadException: file:///Users/aalmiray/.m2/repository/org/kordamp/ikonli/app/12.0.1-SNAPSHOT/app-12.0.1-SNAPSHOT.jar!/app/app.fxml at javafx.fxml/javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2625) at javafx.fxml/javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2863) at javafx.fxml/javafx.fxml.FXMLLoader.processImport(FXMLLoader.java:2707) at javafx.fxml/javafx.fxml.FXMLLoader.processProcessingInstruction(FXMLLoader.java:2676) at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2542) at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2466) at javafx.fxml/javafx.fxml.FXMLLoader.load(FXMLLoader.java:2435) at [email protected]/app.App.start(App.java:33) at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428) at java.base/java.security.AccessController.doPrivileged(AccessController.java:391) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427) at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)Caused by: java.lang.ClassNotFoundException: javafx.geometry.Insets at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at javafx.fxml/javafx.fxml.FXMLLoader.loadTypeForPackage(FXMLLoader.java:2931) at javafx.fxml/javafx.fxml.FXMLLoader.loadType(FXMLLoader.java:2920) at javafx.fxml/javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2861)
The javafx.geometry.Insets class is provided by the javafx.graphics module which is set as a requirement on the app module.
The text was updated successfully, but these errors were encountered:
As commented at #67 (comment) by @p-zalejko, the fix is to set an explicit classloader on the FXMLLoder instance. There's nothing to be done from Layrry's side other than documenting this use case.
As a follow up t #67, there seems to be a problem when resolving types consumed in an FXML file. The following code fails
App.java
module-info.java
layers.toml
versions.properties
The error I get is
The
javafx.geometry.Insets
class is provided by thejavafx.graphics
module which is set as a requirement on theapp
module.The text was updated successfully, but these errors were encountered: