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
Summary:
When I run the package exe file with local jar, I get exception info below (My system is Microsoft Windows Version24H2 26100.3775)
E:\CodeProjects\Java\NovelFormatterFX\target\NovelFormatter>NovelFormatter.exe
May 04,20255:45:12 PM com.sun.javafx.application.PlatformImpl startup
警告: Unsupported JavaFX configuration: classes were loaded from'unnamed module @2928854b'
Exception in Application start method
Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:893)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
at java.base/java.lang.Thread.run(Unknown Source)
// Here is my question
Caused by: java.lang.NoClassDefFoundError: xss/it/nfx/NfxWindow
at cc.meltryllis.nf.ui.MainApplication.start(MainApplication.java:45)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:839)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:483)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:456)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:455)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
...1 more
Caused by: java.lang.ClassNotFoundException: xss.it.nfx.NfxWindow
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
...10 more
Detail:
I want to import a local jar nfx-core-1.0.2.jar to my maven project.
Here is my pom.xml:
I have achieved my goal by installing this jar into my local maven repository, so this problem is not urgent :) I just want to know why the above method does not work.
Summary:
When I run the package exe file with local jar, I get exception info below (My system is Microsoft Windows Version24H2 26100.3775)
Detail:
I want to import a local jar
nfx-core-1.0.2.jar
to my maven project.Here is my pom.xml:
Some situations I tried:
nfx-core.jar
.The text was updated successfully, but these errors were encountered: