본문 바로가기

Java

swing 예제 하나 돌리는데 Exception이 나네...

그냥 간단한 JFrame 하나 띄우는 예제인데
실행하면

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: sun.font.FontManager.initIDs(Z)V
at sun.font.FontManager.initIDs(Native Method)
at sun.font.FontManager.access$000(Unknown Source)
at sun.font.FontManager$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManager.<clinit>(Unknown Source)
at sun.java2d.SunGraphicsEnvironment.addDirFonts(Unknown Source)
at sun.java2d.SunGraphicsEnvironment.registerFontsInDir(Unknown Source)
at sun.java2d.SunGraphicsEnvironment.access$200(Unknown Source)
at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.java2d.SunGraphicsEnvironment.<init>(Unknown Source)
at sun.awt.Win32GraphicsEnvironment.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at java.awt.Window.init(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source)
at com.tistory.devyongsik.sample.AnalysisResultViewer.createAndShowGUI(AnalysisResultViewer.java:19)
at com.tistory.devyongsik.sample.AnalysisResultViewer.access$0(AnalysisResultViewer.java:17)
at com.tistory.devyongsik.sample.AnalysisResultViewer$1.run(AnalysisResultViewer.java:36)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


이런 에러가 발생한다.

아 무슨 폰트문제인가...
구글링해봐도 답이 안나오고..
뭐지 이거..ㅠㅠ