java.lang.NoClassDefFoundError: com/sun/javafx/css/converters/EnumConverter
java.lang.NoClassDefFoundError: com/sun/javafx/css/converters/EnumConverter
0
我正在 scenebuilder 中创建一个 JavaFX 应用程序。
我导入了 [GSI-CS-CO/chart-fx] 项目,我正在使用 Gradle、JDK 11
我正在使用他们的 'ChartFxSample.java'
当我运行样本时,构建失败
Task :App.main() FAILED
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details.
Exception in Application start method
Exception in Application stop method
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:473)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:372)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1051)
Caused by: java.lang.RuntimeException: Exception in Application start method
Caused by: java.lang.RuntimeException: Exception in Application start method
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:973)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication(LauncherImpl.java:198)
at java.base/java.lang.Thread.run(Thread.java:834)
原因:
java.lang.NoClassDefFoundError: com/sun/javafx/css/converters/EnumConverter
Caused by:
java.lang.NoClassDefFoundError: com/sun/javafx/css/converters/EnumConverter
at de.gsi.chart.axes.spi.AbstractAxisParameter.<init>(AbstractAxisParameter.java:188)
at de.gsi.chart.axes.spi.AbstractAxis.<init>(AbstractAxis.java:112)
at de.gsi.chart.axes.spi.AbstractAxis.<init>(AbstractAxis.java:160)
at de.gsi.chart.axes.spi.DefaultNumericAxis.<init>(DefaultNumericAxis.java:137)
at de.gsi.chart.axes.spi.DefaultNumericAxis.<init>(DefaultNumericAxis.java:102)
at App.start(App.java:60)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1(LauncherImpl.java:919)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait(PlatformImpl.java:449)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater(PlatformImpl.java:418)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater(PlatformImpl.java:417)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop(WinApplication.java:175)
... 1 more
原因:
java.lang.ClassNotFoundException: com.sun.javafx.css.converters.EnumConverter
Caused by:
java.lang.ClassNotFoundException: com.sun.javafx.css.converters.EnumConverter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 15 more
异常运行宁应用程序
任务“:App.main()”执行失败。
Process 'command 'C:/Program Files/JetBrains/IntelliJ IDEA 2019.2.4/jbr/bin/java.exe'' finished with non-zero exit value 1
我找到了依赖项的解决方案:
implementation 'de.gsi.chart:chartfx-chart:8.0.0'
应该是:
implementation 'de.gsi.chart:chartfx-chart:11.0.0'
0
我正在 scenebuilder 中创建一个 JavaFX 应用程序。
我导入了 [GSI-CS-CO/chart-fx] 项目,我正在使用 Gradle、JDK 11
我正在使用他们的 'ChartFxSample.java'
当我运行样本时,构建失败
Task :App.main() FAILED SLF4J: No SLF4J providers were found. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#noProviders for further details. Exception in Application start method Exception in Application stop method java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:473) at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:372) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1051) Caused by: java.lang.RuntimeException: Exception in Application start method Caused by: java.lang.RuntimeException: Exception in Application start method
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:973)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication(LauncherImpl.java:198)
at java.base/java.lang.Thread.run(Thread.java:834)
原因:
java.lang.NoClassDefFoundError: com/sun/javafx/css/converters/EnumConverter Caused by: java.lang.NoClassDefFoundError: com/sun/javafx/css/converters/EnumConverter
at de.gsi.chart.axes.spi.AbstractAxisParameter.<init>(AbstractAxisParameter.java:188)
at de.gsi.chart.axes.spi.AbstractAxis.<init>(AbstractAxis.java:112)
at de.gsi.chart.axes.spi.AbstractAxis.<init>(AbstractAxis.java:160)
at de.gsi.chart.axes.spi.DefaultNumericAxis.<init>(DefaultNumericAxis.java:137)
at de.gsi.chart.axes.spi.DefaultNumericAxis.<init>(DefaultNumericAxis.java:102)
at App.start(App.java:60)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1(LauncherImpl.java:919)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait(PlatformImpl.java:449)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater(PlatformImpl.java:418)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater(PlatformImpl.java:417)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop(WinApplication.java:175)
... 1 more
原因:
java.lang.ClassNotFoundException: com.sun.javafx.css.converters.EnumConverter Caused by: java.lang.ClassNotFoundException: com.sun.javafx.css.converters.EnumConverter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 15 more
异常运行宁应用程序
任务“:App.main()”执行失败。
Process 'command 'C:/Program Files/JetBrains/IntelliJ IDEA 2019.2.4/jbr/bin/java.exe'' finished with non-zero exit value 1
我找到了依赖项的解决方案:
implementation 'de.gsi.chart:chartfx-chart:8.0.0'
应该是:
implementation 'de.gsi.chart:chartfx-chart:11.0.0'