I downloaded and unpacked jdk1_2_2rc2-linux-i386.tar.gz.
I assume that the lack of installation instructions means that the java
examples in demo/ can be run in-place
i.e. there's no need to define environment varibales such as CLASSPATH and
JAVA_HOME.
The README files with each demo seem to support this.
Obviously I've fixed my PATH so that the java binaries in bin/ are used.

Running the examples from a shell using "java -jar <example>.jar"
produces the following output (this example taken from the Stylepad demo):

% java -jar Stylepad.jar
...
--snip some rubbish about adobe-symbol font not found--
...
Exception in thread "main" java.lang.Error: can't load
javax.swing.plaf.metal.MetalLookAndFeel
 at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:856)
 at javax.swing.UIManager.initialize(UIManager.java:926)
 at javax.swing.UIManager.maybeInitialize(UIManager.java:948)
 at javax.swing.UIManager.getUI(UIManager.java:559)
 at javax.swing.JPanel.updateUI(JPanel.java:110)
 at javax.swing.JPanel.<init>(JPanel.java:70)
 at javax.swing.JPanel.<init>(JPanel.java:100)
 at javax.swing.JRootPane.createGlassPane(JRootPane.java:224)
 at javax.swing.JRootPane.<init>(JRootPane.java:181)
 at javax.swing.JFrame.createRootPane(JFrame.java:154)
 at javax.swing.JFrame.frameInit(JFrame.java:147)
 at javax.swing.JFrame.<init>(JFrame.java:124)
 at Stylepad.main(Stylepad.java:73)


Now, I've checked jre/lib/rt.jar and
javax.swing.plaf.metal.MetalLookAndFeel.class is definitely present.
So what do I do now ?

Alistair.



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to