Compiling on Linux PPC

Subscribe to Compiling on Linux PPC 1 post, 1 voice

 
Avatar (SF) Doug Mc... 1 post

Hi. I’ve “successfully” compiled on Mandrake 10.2 PPC using IBM’s 142 Java SDK. When I run the jar file I get:

[doug@mandrake jbidwatcher-0.9.6]$ java -jar JBidWatcher-0.9.6.jar
Exception in thread “main” java.lang.ExceptionInInitializerError
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:175)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.Font.initializeFont(Font.java:333)
at java.awt.Font.(Font.java:368)
at javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(DefaultMetalTheme.java:224)
at javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.java:182)
at javax.swing.plaf.metal.DefaultMetalTheme.getControlTextFont(DefaultMetalTheme.java:158)
at javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(MetalLookAndFeel.java:1479)
at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:230)
at javax.swing.UIDefaults.get(UIDefaults.java:160)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:73)
at javax.swing.UIDefaults.getFont(UIDefaults.java:380)
at javax.swing.UIManager.getFont(UIManager.java:524)
at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:119)
at javax.swing.plaf.basic.BasicTabbedPaneUI.installDefaults(BasicTabbedPaneUI.java:265)
at javax.swing.plaf.metal.MetalTabbedPaneUI.installDefaults(MetalTabbedPaneUI.java:82)
at javax.swing.plaf.basic.BasicTabbedPaneUI.installUI(BasicTabbedPaneUI.java:190)
at javax.swing.JComponent.setUI(JComponent.java:484)
at javax.swing.JTabbedPane.setUI(JTabbedPane.java:219)
at javax.swing.JTabbedPane.updateUI(JTabbedPane.java:228)
at javax.swing.JTabbedPane.(JTabbedPane.java:194)
at javax.swing.JTabbedPane.(JTabbedPane.java:159)
at JConfigFrame.createConfigFrame(JConfigFrame.java:136)
at JConfigFrame.(JConfigFrame.java:56)
at JBidWatch.getUserSetup(JBidWatch.java:274)
at JBidWatch.main(JBidWatch.java:456)
Caused by: java.lang.NullPointerException
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2159)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1994)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:908)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:76)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:287)
at sun.awt.font.NativeFontWrapper.(NativeFontWrapper.java:68)
… 29 more

Jikes doesn’t like IBM’s 142 sdk too much it seems. CLASSPATH was a problem because rt.jar is now several files. Then I got a ton of compile-time warnings about things like missing break in a case statement. So I used javac (and had the problem listed above).

Thanks,
Doug