andersoncw
(usa Debian)
Enviado em 16/10/2014 - 09:56h
Acabei de descobrir que ocorre erro quando executo o JAR pelo terminal e não estou dentro do mesmo diretório dele.
Quer dizer, dá erro quando executo o JAR passando como parâmetro o caminho absoluto até ele (estando em um outro diretório qualquer).
Como não dá o mesmo erro no Ubuntu, só no Debian, então gostaria de saber se preciso configurar alguma coisa no Java para isso funcionar.
A mensagem de erro é a seguinte:
Exception in thread "AWT-EventQueue-0" 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:260)
at sun.font.FontScaler.<clinit>(FontScaler.java:98)
at sun.font.TrueTypeFont.getScaler(TrueTypeFont.java:1262)
at sun.font.FileFontStrike.<init>(FileFontStrike.java:179)
at sun.font.FileFont.createStrike(FileFont.java:95)
at sun.font.Font2D.getStrike(Font2D.java:344)
at sun.font.Font2D.getStrike(Font2D.java:289)
at sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:358)
at sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:350)
at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:302)
at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1113)
at javax.swing.JComponent.getFontMetrics(JComponent.java:1623)
at sun.swing.MenuItemLayoutHelper.reset(MenuItemLayoutHelper.java:125)
at sun.swing.MenuItemLayoutHelper.<init>(MenuItemLayoutHelper.java:107)
at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredMenuItemSize(BasicMenuItemUI.java:417)
at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize(BasicMenuItemUI.java:367)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1659)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:484)
at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:301)
at javax.swing.plaf.basic.DefaultMenuLayout.preferredLayoutSize(DefaultMenuLayout.java:60)
at java.awt.Container.preferredSize(Container.java:1794)
at java.awt.Container.getPreferredSize(Container.java:1778)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1661)
at javax.swing.JRootPane$RootLayout.preferredLayoutSize(JRootPane.java:925)
at java.awt.Container.preferredSize(Container.java:1794)
at java.awt.Container.getPreferredSize(Container.java:1778)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1661)
at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:719)
at java.awt.Container.preferredSize(Container.java:1794)
at java.awt.Container.getPreferredSize(Container.java:1778)
at java.awt.Window.pack(Window.java:809)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)