>>>>> "psteele" == psteele <[EMAIL PROTECTED]> writes:
psteele> Hello Please help! I am having the following problem
psteele> using swing-1.0.3 with blackdown's jdk1.1.6 under RedHat
psteele> linux 5.1: My profile:
psteele> CLASSPATH=.:/opt/java/swing-1.0.3/swingall.jar
psteele> JAVA_HOME=/opt/java/jdk1.1.6
psteele> SWING_HOME=/opt/java/swing-1.0.3
psteele> export CLASSPATH SWING_HOME JAVA_HOME
psteele> When I attempt to compile HelloSwing.java downloaded from
psteele> the sun site I receive the following mesage
psteele> $ javac HelloSwing.java
psteele> HelloSwing.java:1: Package java.swing not found in import.
psteele> import java.swing.*;
psteele> ^
psteele> HelloSwing.java:5: Superclas JFrame of class HellowSwing not found.
psteele> public class HelloSwing extends JFrame implements ActionListener {
psteele> ^
psteele> 2 errors
There has been some confusion about swings package name:
The actual package name for swing 1.0.3 is 'com.sun.java.swing', the
example should compile if you change its import statements.
psteele> To add insult to injure, I cannot run the SwingSet
psteele> program that came with swing-1.0.3. From the SwingSet
psteele> directory I type:
psteele> $ ./runnit
[...]
psteele> Unable to initialize threads: cannot find class java/lang/Thread
psteele> $
Swing's example-scripts are somewhat broken, to run these scripts you
need to set JAVA_HOME and SWING_HOME (like you did above) and
you have to *unset* CLASSPATH:
$ export JAVA_HOME=/opt/java/jdk1.1.6
$ export SWING_HOME=/opt/java/swing-1.0.3
$ unset CLASSPATH
$ ./runnit
Juergen
--
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802