FAILED to open Scenebuilder after having imported FontAwesomeFXIcons

Issue #29 resolved
Former user created an issue

Hi Jens,

I just started using your great FontAwesomeFXIcons framework through drag and drop in Scenebuilder. Although I can work with the correctly displayed Icons at first yet I fail to reopen the .fxml file via Scenebuilder because I get this error message:

Caused by: javafx.fxml.LoadException: 
/C:/Users/Cheng/Dropbox/dev/netBeansProjects/POS_online/src/de/com/phisoft/app/restaurant/view/Orderview.fxml

    at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
    at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2848)
    at javafx.fxml.FXMLLoader.processImport(FXMLLoader.java:2692)
    at javafx.fxml.FXMLLoader.processProcessingInstruction(FXMLLoader.java:2661)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2517)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2425)
    at com.oracle.javafx.scenebuilder.kit.fxom.FXOMLoader.load(FXOMLoader.java:89)
    ... 20 more

Caused by: java.lang.ClassNotFoundException: de.jensd.fx.glyphs.fontawesome.FontAwesomeIconView
    at java.lang.ClassLoader.findClass(ClassLoader.java:530)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at javafx.fxml.FXMLLoader.loadTypeForPackage(FXMLLoader.java:2916)
    at javafx.fxml.FXMLLoader.loadType(FXMLLoader.java:2905)
    at javafx.fxml.FXMLLoader.importClass(FXMLLoader.java:2846)
    ... 25 more

Currently I am running with Netbeans 8.02; Gluon SceneBuilder 8.1.1;

Could you please look into it? Very much appreciated! Cheng

Comments (4)

  1. Jens Deters repo owner

    Hi! This is not an issue of FontAwesomeFX, this is a SceneBuilder issue! It turns out that current version of SceneBuilder hat problems to handle fully qualified imports.

    As an (anoying) workaround edit your FXML file manually and modify your imports like:

    <?import de.jensd.fx.glyphs.fontawesome.*?>

    Then try to open the FXML file in SceneBuilder again.

    Jens

  2. Log in to comment