Hello

Please help! I am having the following problem using swing-1.0.3 with
blackdown's jdk1.1.6 under RedHat linux 5.1:
My profile:

CLASSPATH=.:/opt/java/swing-1.0.3/swingall.jar
JAVA_HOME=/opt/java/jdk1.1.6
SWING_HOME=/opt/java/swing-1.0.3
export CLASSPATH SWING_HOME JAVA_HOME


When I attempt to compile HelloSwing.java downloaded from the sun site I

receive the following mesage

$ javac HelloSwing.java
HelloSwing.java:1: Package java.swing not found in import.
import java.swing.*;
           ^

HelloSwing.java:5: Superclas JFrame of class HellowSwing not found.
public class HelloSwing extends JFrame implements ActionListener {
                                                     ^

2 errors


To add insult to injure, I cannot run the SwingSet program that came
with
swing-1.0.3.  From the SwingSet directory I type:

$ ./runnit
/opt/java/jdk1.1.6/bin/java -classpath .:/opt/java/swing-1.0.3/swing.j
ar:/opt/java/swing-1.0.3/windows.jar:/opt/javaswing-1.0.3/motif.jar:/o
pt/java/swing-1.0.3/metal.jar:/opt/java/swing-1.0.3/organic.jar:/opt/j
ava/swing-1.0.3/mac.jar:.:/opt/java/swing-1.0.3/swingall.jar SwingSet
file:/opt/java/swing-1.0.3/examples/SwingSet/doc/api
Unable to initialize threads: cannot find class java/lang/Thread
$

Thanks for your help

Philip

[EMAIL PROTECTED]

Reply via email to