[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-java
Subject: Swing on ARM
From: Richard Priestley <r.priestley () cs ! ucl ! ac ! uk>
Date: 2002-03-06 12:45:36
[Download RAW message or body]
Hi,
I've seen similar posts regarding this problem, so apologies if I am
duplicating.
I can get a console based application to print 'Hello World'. I can't get
the IPAQDemo.jar to run. It failed at first because it couldn't find
libXt.so.6, so I installed that but now I get:
Problem creating javax.swing.plaf.metal.MetalLookAndFeel with method
getUserTextlect.InvocationTargetException
I've copied the stack trace below. It throws an exception when the class
loader is unable to find sun.awt.X11GraphicsEnvironment.
My environment:
I have installed Familiar v0.5.1 on an iPAQ and I've installed the
j2re-1.3.1-rc1 distribution plus the 'additional-ipaq-stuff'. I have not
removed anything from them - part of the filesystem is an nfs share.
DISPLAY=:0.0
PATH= <snip> /usr/local/j2re1.3.1/bin </snip>
I have also tried tinkering with CLASSPATH and JAVA_HOME on the off chance
they might help but to no avail.
Have I done something stupid? Many thanks for your help.
Richard Priestley
----The stack trace----
Problem creating javax.swing.plaf.metal.MetalLookAndFeel with method
getUserTextFont and args { : java.lang.reflect.InvocationTargetException
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:993)
at
javax.swing.UIDefaults$ProxyLazyValue.createValue(UIDefaults.java:670)
at javax.swing.UIDefaults.get(UIDefaults.java:145)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:46)
at javax.swing.UIDefaults.getFont(UIDefaults.java:223)
at javax.swing.UIManager.getFont(UIManager.java:456)
at
javax.swing.plaf.basic.BasicTextUI.installDefaults(BasicTextUI.java:207)
at javax.swing.plaf.basic.BasicTextUI.installUI(BasicTextUI.java:561)
at
javax.swing.plaf.metal.MetalTextFieldUI.installUI(MetalTextFieldUI.java:41)
at javax.swing.JComponent.setUI(JComponent.java:322)
at javax.swing.text.JTextComponent.setUI(JTextComponent.java:249)
at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:259)
at javax.swing.text.JTextComponent.<init>(JTextComponent.java:233)
at javax.swing.JTextField.<init>(JTextField.java:203)
at javax.swing.JTextField.<init>(JTextField.java:148)
at IPAQDemo$1.<init>(IPAQDemo.java:17)
at IPAQDemo.<clinit>(IPAQDemo.java:16)
Exception in thread "main" java.lang.NoClassDefFoundError:
sun/awt/X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.<init>(Window.java:186)
at java.awt.Frame.<init>(Frame.java:315)
at java.awt.Frame.<init>(Frame.java:262)
at javax.swing.JFrame.<init>(JFrame.java:141)
at IPAQDemo.main(IPAQDemo.java:69)
-----The stack trace ------
----------------------------------------------------------------------
To UNSUBSCRIBE, email to java-linux-request@java.blackdown.org
with a subject of "unsubscribe". Trouble? Contact karl@blackdown.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic