FontScaler error on linux.

0

I'm using JasperReports 6.4.0.

Deployng my app ina Windows environment it works perfectly.

Deployng it in a Lingx environment randomly I've an error

java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontScaler

I allways print the same report and the error comes randomly even if I already printed the report many times.

The FontScaler class obviously is in the classpath.

As suggested in internet I added the ae-awt.jar to my classpath but nothing chaged.

Any solution ? Any suggestion or idea ?

Tks

Tullio

tullio0106's picture
Joined: Sep 26 2007 - 6:04pm
Last seen: 1 month 4 weeks ago

Nobody can help ?

tullio0106 - 2 months 2 days ago

1 Answer:

0

Sometime I get also

    java.lang.UnsatisfiedLinkError: sun.font.FreetypeFontScaler.initIDs(Ljava/lang/Class;)V
        at sun.font.FreetypeFontScaler.initIDs(Native Method)
        at sun.font.FreetypeFontScaler.<clinit>(FreetypeFontScaler.java:50)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at sun.font.FontScaler.<clinit>(FontScaler.java:98)
        at sun.font.TrueTypeFont.getScaler(TrueTypeFont.java:1298)
        at sun.font.FileFontStrike.<init>(FileFontStrike.java:179)
        at sun.font.FileFont.createStrike(FileFont.java:95)
        at sun.font.Font2D.getStrike(Font2D.java:359)
        at sun.font.Font2D.getStrike(Font2D.java:308)
        at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:82)
        at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:97)
        at sun.font.Font2D.getFontMetrics(Font2D.java:415)
        at java.awt.Font.defaultLineMetrics(Font.java:2176)
        at java.awt.Font.getLineMetrics(Font.java:2246)
        at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.determineLeading(SimpleTextLineWrapper.java:391)
etc...

tullio0106's picture
Joined: Sep 26 2007 - 6:04pm
Last seen: 1 month 4 weeks ago
Feedback
randomness