FontScaler error on linux.


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 ?



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:


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>(
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at sun.font.FontScaler.<clinit>(
        at sun.font.TrueTypeFont.getScaler(
        at sun.font.FileFontStrike.<init>(
        at sun.font.FileFont.createStrike(
        at sun.font.Font2D.getStrike(
        at sun.font.Font2D.getStrike(
        at sun.font.CompositeStrike.getStrikeForSlot(
        at sun.font.CompositeStrike.getFontMetrics(
        at sun.font.Font2D.getFontMetrics(
        at java.awt.Font.defaultLineMetrics(
        at java.awt.Font.getLineMetrics(
        at net.sf.jasperreports.engine.fill.SimpleTextLineWrapper.determineLeading(

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