kordamp / ikonli

Icon packs for Java applications
http://kordamp.org/ikonli/
Apache License 2.0
496 stars 49 forks source link

IcomoonIkonHandler oes not define or inherit an implementation of the resolved method 'abstract java.net.URL getFontResource() #129

Closed georgemoralis closed 3 years ago

georgemoralis commented 3 years ago

got this after updating to 12.1.0

Caused by: java.lang.AbstractMethodError: Receiver class org.kordamp.ikonli.icomoon.IcomoonIkonHandler does not define or inherit an implementation of the resolved method 'abstract java.net.URL getFontResource()' of interface org.kordamp.ikonli.IkonHandler. at org.kordamp.ikonli.javafx.IkonResolver.(IkonResolver.java:42) at org.kordamp.ikonli.javafx.FontIcon.setIconLiteral(FontIcon.java:232)

georgemoralis commented 3 years ago

the fxml part

  <FontIcon iconColor="#0044ff" iconLiteral="mdi-account" iconSize="128" wrappingWidth="128.0" GridPane.columnIndex="1" GridPane.rowIndex="2">
     <GridPane.margin>
        <Insets left="35.0" />
     </GridPane.margin>
  </FontIcon>
georgemoralis commented 3 years ago

And this when i load it from scenebuilder

Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.kordamp.ikonli.javafx.IkonResolver at org.kordamp.ikonli.javafx.FontIcon.setIconLiteral(FontIcon.java:232) ... 71 more

georgemoralis commented 3 years ago

hmm sorry i had an old 11.5.0 font lib loaded somewhere. Now it works perfectly :)