java.lang.NoClassDefFoundError

Could not initialize class sun.font.SunFontManager

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Stack Overflow by Thinesh
    ,
  • via Stack Overflow by user2964628
    ,
  • Stack trace

    • java.lang.NoClassDefFoundError: Could not initialize class sun.font.SunFontManager at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264) at sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:819) at org.jfree.text.G2TextMeasurer.getStringWidth(G2TextMeasurer.java:78) at org.jfree.text.TextUtilities.nextLineBreak(TextUtilities.java:248) at org.jfree.text.TextUtilities.createTextBlock(TextUtilities.java:187) at org.jfree.text.TextUtilities.createTextBlock(TextUtilities.java:155) at org.jfree.chart.plot.PiePlot.drawLeftLabels(PiePlot.java:1822) at org.jfree.chart.plot.PiePlot.drawLabels(PiePlot.java:1787) at org.jfree.chart.plot.PiePlot3D.draw(PiePlot3D.java:517) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1058) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1244) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1223) at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:173) at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:328) at com.PMSystems.charts.GenerateChart.generatePieChart(GenerateChart.java:340) at org.apache.jsp.report.PMSCampaignSummaryDetail_jsp._jspService(PMSCampaignSummaryDetail_jsp.java:1886)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    No Bugmate found.