-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ClassDefNotFoundError when importing custom component #281
Comments
Okay, after playing around today I realized that the base folder must contain a directory hierarchy that represents the package structure of the controls to be imported. If not, nothing happens. It would be great if the user would get an indication of what's going on and maybe hints on how to solve the problem. |
I agree that it would be nice to get some feedback on why a custom component was not loaded. I wrote a little utility that sometimes helps me debug these sorts of issues (though it doesn't catch every case):
|
Hi @dubaut, with which control did you try this, can you provide an example (FXML with custom control)? Thanks! |
As suggested on StackOverflow I build SceneBuilder from master and tried out the feature apparently merged with #228.
First, everything looked fine but after all, it did not load my custom component. I then debugged it in IntelliJ and found out that I get a
ClassDefNotFoundError
for all .class files in the folder I provided, even though these classes clearly exist.Does anyone have the same issue?
Plus: I am not sure if it is a good thing that the application fails silently without telling the user why loading a custom component failed.
The text was updated successfully, but these errors were encountered: