java.lang.NoClassDefFoundError

Could not initialize class sun.font.SunFontManager

Solutions on the web5303

  • Could not initialize class sun.font.SunFontManager
  • via Stack Overflow by Thinesh
    , 1 year ago
    Could not initialize class sun.font.SunFontManager
  • via Stack Overflow by user2964628
    , 2 months ago
    Could not initialize class sun.font.SunFontManager
  • Stack trace

    • java.lang.NoClassDefFoundError: Could not initialize class sun.font.SunFontManager at sun.font.FontDesignMetrics.getMetrics(Unknown Source) at sun.swing.SwingUtilities2.getFontMetrics(Unknown Source) at javax.swing.JComponent.getFontMetrics(Unknown Source) at javax.swing.plaf.basic.BasicLabelUI.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.GridLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at javax.swing.JComponent.getPreferredSize(Unknown Source) at java.awt.BorderLayout.preferredLayoutSize(Unknown Source) at java.awt.Container.preferredSize(Unknown Source) at java.awt.Container.getPreferredSize(Unknown Source) at java.awt.Window.pack(Unknown Source) at com.nokia.APA.Chart.ApaPowerControlChart.display(Unknown Source) at com.nokia.APA.Chart.ApaPowerControlChart$1.run(Unknown Source)

    Write tip

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

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.