Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caused by: java.lang.ClassNotFoundException: io.github.palexdev.materialfx.font.MFXFontIcon #650

Open
tushartgupta opened this issue Sep 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tushartgupta
Copy link

On my Mac - I installed the latest release of SceneBuilder. Now in my JavaFx project in Intellij, i am using the materialfx library and have imports like

import io.github.palexdev.materialfx.font.MFXFontIcon
import io.github.palexdev.materialfx.controls.MFXButton

I searched for and added the materialfx library to SceneBuilder app . Attaching the screenshot. It works fine when i go to the "SceneBuilder" app within the Inteliij IDE. It shows all the controls including the MFXButton and MFXFontIcon. It doesn't work when i select the option "Open in SceneBuilder" by righ clickining the fxml file in Intellij. It fails with:

Caused by: java.lang.ClassNotFoundException: io.github.palexdev.materialfx.font.MFXFontIcon
at java.base/java.lang.ClassLoader.findClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at javafx.fxml@20.0.1/javafx.fxml.FXMLLoader.loadTypeForPackage(Unknown Source)
at javafx.fxml@20.0.1/javafx.fxml.FXMLLoader.loadType(Unknown Source)
... 66 more

Within Intellij, it opens the fxml in scenebuilder, but the only issue is that the left side pane is not showing the "Controller" tab for the document. It shows the hierarchy, but not the controller, when i can set the controller class

Expected Behavior

Current Behavior

Steps to Reproduce

Your Environment

Product Version
JavaFX Scene Builder 20.0.0

Build Information
Version 20.0.0
Date: 2023-05-08 14:08:04
JavaFX Version: 20.0.1
Java Version: 20, OpenJDK Runtime Environment

Logging
The default configuration stores logging output in a file named scenebuilder-20.0.0.log (possibly followed by a trailing '.' and a digit).
The default file path is /Users/tushgupt/.scenebuilder/logs/scenebuilder-20.0.0.log

JavaFX
20.0.1

Java
20.0.1, OpenJDK Runtime Environment

Java Library Path(s):
/
/Applications/SceneBuilder.app/Contents/app
/Library/Java/Extensions
/

Missing or invalid Java Library Path(s):
/Users/tushgupt/Library/Java/Extensions
/Network/Library/Java/Extensions
/System/Library/Java/Extensions
/usr/lib/java

Operating System
Mac OS X, x86_64, 13.5.1

Screenshots

image
@tushartgupta tushartgupta added the bug Something isn't working label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant