Jfoenix library does not list JfxButtons after added

1

I have a problem and I come here to see if anyone can help me solve it. I installed the Jfoenix library on my SceneBuilder to work alongside the Netbeans IDE, but after the library is imported into the SceneBuilder as they show it should be done on the site, only a few JFXs work, others like JFXbutton, JFXComboBox, JFXCheckBox, are not listed for Using the Look at the SceneBuilder Log displays the following information:

  

Exception for: com / jfoenix / controls / JFXButton.class   java.io.IOException: java.lang.NoClassDefFoundError:   com / sun / javafx / css / StyleConverterImpl at   com.oracle.javafx.scenebuilder.kit.library.util.JarExplorer.instantiateWithFXMLLoader (JarExplorer.java:114)     at   com.oracle.javafx.scenebuilder.kit.library.util.JarExplorer.exploreEntry (JarExplorer.java:160)     at   com.oracle.javafx.scenebuilder.kit.library.util.JarExplorer.explore (JarExplorer.java:70)     at   com.oracle.javafx.scenebuilder.kit.library.user.LibraryFolderWatcher.exploreAndUpdateLibrary (LibraryFolderWatcher.java:325)     at   com.oracle.javafx.scenebuilder.kit.library.user.LibraryFolderWatcher.runDiscovery (LibraryFolderWatcher.java:138)     at   com.oracle.javafx.scenebuilder.kit.library.user.LibraryFolderWatcher.run (LibraryFolderWatcher.java:92)     at java.base / java.lang.Thread.run (Thread.java:844) Caused by:   java.lang.NoClassDefFoundError: com / sun / javafx / css / StyleConverterImpl     at java.base / java.lang.ClassLoader.defineClass1 (Native Method) at   java.base / java.lang.ClassLoader.defineClass (ClassLoader.java:1007) at   java.base / java.security.SecureClassLoader.defineClass (SecureClassLoader.java:174)     at   java.base / java.net.URLClassLoader.defineClass (URLClassLoader.java:545)     at   java.base / java.net.URLClassLoader.access $ 100 (URLClassLoader.java:83)     at java.base / java.net.URLClassLoader $ 1.run (URLClassLoader.java:453)     at java.base / java.net.URLClassLoader $ 1.run (URLClassLoader.java:447)     at java.base / java.security.AccessController.doPrivileged (Native   Method) at   java.base / java.net.URLClassLoader.findClass (URLClassLoader.java:446)     at java.base / java.lang.ClassLoader.loadClass (ClassLoader.java:563)     at java.base / java.lang.ClassLoader.loadClass (ClassLoader.java:496)     at   com.jfoenix.controls.JFXButton $ StyleableProperties. (JFXButton.java:175)     at com.jfoenix.controls.JFXButton. (JFXButton.java:155) at   java.base / jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0 (Native   Method) at   java.base / jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:62)     at   java.base / jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:45)     at   java.base / java.lang.reflect.Constructor.newInstance (Constructor.java:488)     at java.base / java.lang.Class.newInstance (Class.java:558) at   javafx.fxml / javafx.fxml.FXMLLoader $ InstanceDeclarationElement.constructValue (FXMLLoader.java:1019)     at   javafx.fxml / javafx.fxml.FXMLLoader $ ValueElement.processStartElement (FXMLLoader.java:754)     at   javafx.fxml / javafx.fxml.FXMLLoader.processStartElement (FXMLLoader.java:2722)     at javafx.fxml / javafx.fxml.FXMLLoader.loadImpl (FXMLLoader.java:2552)     at javafx.fxml / javafx.fxml.FXMLLoader.load (FXMLLoader.java:2450) at   com.oracle.javafx.scenebuilder.kit.library.util.JarExplorer.instantiateWithFXMLLoader (JarExplorer.java:110)     ... 6 more Caused by: java.lang.ClassNotFoundException:   com.sun.javafx.css.StyleConverterImpl at   java.base / java.net.URLClassLoader.findClass (URLClassLoader.java:466)     at java.base / java.lang.ClassLoader.loadClass (ClassLoader.java:563)     at java.base / java.lang.ClassLoader.loadClass (ClassLoader.java:496)     ... 30 more

    
asked by anonymous 09.10.2017 / 18:37

1 answer

0

Step 1: Add jfoenix.jar to your classpath by clicking Library > Add Jar / Folder. (As the components appear in your SceneBuilder you can skip the next step if you want)

Step 2: In your SceneBuilder add it also only as follows:

Inthewindowthatappears,clickAddLibrary/FXMLfromfilesystemandselectthejaragain.

AfterdoingthisIgottheresultbelow:

    
10.10.2017 / 00:53