Impossible to add the charm library in Scene Build

2019-07-19 09:37发布

问题:

I can not add gluonhq.charm elements or open gluon FXML with "charm-common-2.2.0.jar" library in my scene builder Builder 8.2 (I tried with 8.1.1 too).

When I add the jar file, nothing is added in the left section on scene builder. But the jar is correctly added in the Library folder.

See image below

Or when I try to open a gluon FXLM, I have this exception :

Caused by: java.lang.ClassNotFoundException: com.gluonhq.charm.glisten.mvc.View

Can you help me ?

回答1:

If you want Gluon's Charm library, you need com.gluonhq:charm:2.2.0, not charm-common.

With Scene Builder 8.2.0 it is easy to install.

You can follow the documentation here. Basically, you will need to select JAR/FXML Manager, click on Search repositories, type charm, and select com.gluonhq:charm.

Click Add JAR and you'll see all the components that can be added to the Custom Panel in Scene Builder. Finally, click on Import Components.