简体   繁体   English

将jfxtra jar导入Scene Builder 2.0时出错

[英]Error importing jfxtra jar into scene builder 2.0

I'm creating an app using JFXtras in Scene Builder 2 but I'm unable to import the jfxtras-all-8.0-r5.jar file into Scene Builder. 我正在Scene Builder 2中使用JFXtras创建应用程序,但无法将jfxtras-all-8.0-r5.jar文件导入Scene Builder。 When I show the JAR Analysis report in Scene Builder I get errors similar to the one shown below for every single class. 当我在Scene Builder中显示“ JAR分析”报告时,对于每个单个类,都会出现类似于以下所示的错误。 How do I fix this issue? 如何解决此问题?

Exception for: jfxtras/internal/scene/control/skin/agenda/AgendaDayListSkin.class
javafx.fxml.LoadException: 
unknown path:2
at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2617)
at javafx.fxml.FXMLLoader.access$700(FXMLLoader.java:104)
at javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1012)
at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:740)
at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2723)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2527)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2425)
at com.oracle.javafx.scenebuilder.kit.library.util.JarExplorer.instantiateWithFXMLLoader(JarExplorer.java:105)
at com.oracle.javafx.scenebuilder.kit.library.util.JarExplorer.exploreEntry(JarExplorer.java:146)
at com.oracle.javafx.scenebuilder.kit.library.util.JarExplorer.explore(JarExplorer.java:65)
at com.oracle.javafx.scenebuilder.kit.library.user.LibraryFolderWatcher.exploreAndUpdateLibrary(LibraryFolderWatcher.java:298)
at com.oracle.javafx.scenebuilder.kit.library.user.LibraryFolderWatcher.runDiscovery(LibraryFolderWatcher.java:122)
at com.oracle.javafx.scenebuilder.kit.library.user.LibraryFolderWatcher.run(LibraryFolderWatcher.java:88)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.InstantiationException: jfxtras.internal.scene.control.skin.agenda.AgendaDayListSkin
at java.lang.Class.newInstance(Class.java:418)
at sun.reflect.misc.ReflectUtil.newInstance(ReflectUtil.java:51)
at javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:1010)
... 11 more
Caused by: java.lang.NoSuchMethodException: jfxtras.internal.scene.control.skin.agenda.AgendaDayListSkin.<init>()
at java.lang.Class.getConstructor0(Class.java:2971)
at java.lang.Class.newInstance(Class.java:403)
... 13 more

Please try the one from Gluon and the latest Java 1.8 http://gluonhq.com/labs/scene-builder/ 请尝试Gluon和最新的Java 1.8中的一个http://gluonhq.com/labs/scene-builder/

The all-in-one jars are back in the maven repo's. 多合一罐子回到了Maven存储库中。 (R6-SNAPSHOT for now). (目前为R6-SNAPSHOT)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM