Impossible to add the charm library in Scene Build

2019-07-19 08:49发布

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条回答
Juvenile、少年°
2楼-- · 2019-07-19 09:48

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.

search 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.

import components

查看更多
登录 后发表回答