tullio0106 Posted January 17, 2020 Share Posted January 17, 2020 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 errorjava.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 ?TksTullio Link to comment Share on other sites More sharing options...
tullio0106 Posted January 17, 2020 Author Share Posted January 17, 2020 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... Link to comment Share on other sites More sharing options...
tullio0106 Posted February 3, 2020 Author Share Posted February 3, 2020 Nobody can help ? Link to comment Share on other sites More sharing options...
tullio0106 Posted June 25, 2020 Author Share Posted June 25, 2020 Nobody can help ?Tks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now