Jfoenix: Problem read an xml file in stage builder Problem reading a file in FXML szene builder

Created on 19 May 2016  路  9Comments  路  Source: sshahine/JFoenix

Example :






it gives me an exception
Caused by: java.lang.ClassNotFoundException: com.jfoenix.controls.JFXTextField
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)

Most helpful comment

The same problem was bugging me for so longer period of time. Either there is a work around too. If we add the jar to the "app. classpath" variable of scenebuilder.cfg file, then it will load the custom components when double clicking on existing fxml file without giving any FXMOLoader & CNF Exception.

All 9 comments

yeah sure, you need to import jfoenix in scene builder first. #85

yes I did, I can use on scene builder component of the jfoenix, but the problem occurs when I reopen name FXML on scene builder.

it is the jar I imported on scene builder
githut

well you just need to include jfoenix.jar in order to use JFoenix controls.

in order to open an existing fxml file in scene builder, you need to open scene builder 1st then open the file. it seems double clicking on the fxml file is not working as scene builder is not loading the custom libraries by then.

this issue is related to scene builder, you can open an issue using the following link:
https://bitbucket.org/gluon-oss/scenebuilder/issues/new

The same problem was bugging me for so longer period of time. Either there is a work around too. If we add the jar to the "app. classpath" variable of scenebuilder.cfg file, then it will load the custom components when double clicking on existing fxml file without giving any FXMOLoader & CNF Exception.

Thank you for your answers, it worked, I used the method of androizer

I opened an issue here

androizer's solution worked for me! Thank you

like this ?

app.mainjar=SceneBuilderApp.jar
app.version=2.0
app.id=com.oracle.javafx.scenebuilder
app.preferences.id=com/oracle/javafx/scenebuilder
app.mainclass=com/oracle/javafx/scenebuilder/app/SceneBuilderApp
app.classpath=SceneBuilderKit.jar;jfoenix-1.6.0.jar
jvmarg.1=-Djava.security.manager
jvmarg.2=-Djava.security.policy=$APPDIR/app/scenebuilder.policy
jvmarg.3=-Dfile.encoding=UTF-8
jvmuserarg.1.name=-Djavafx.autoproxy.disable=
jvmuserarg.1.value=true
jvmuserarg.2.name=-Xmx
jvmuserarg.2.value=999m
jvmuserarg.3.name=-Djava.util.logging.config.file=
jvmuserarg.3.value=$APPDIR/app/logging.properties

what is androizer?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

caoyanfeng picture caoyanfeng  路  3Comments

RodrigoSantiago picture RodrigoSantiago  路  3Comments

deme78 picture deme78  路  3Comments

riftshadow picture riftshadow  路  4Comments

MikeChav picture MikeChav  路  3Comments