I have a similar problem when I run Jikes ! But my Swing programs compile
and run OK using the Blackdown Java compiler.

I am using Slackware 3.5 and my environment setup is shown below :

export
CLASSPATH=.:/usr/local/jdk1.1.6v4a/lib/classes.zip:/usr/local/swing-1.0.3/li
b/swingall.jar

and as for my JAVA_HOME, I just put the following directory inside my PATH :
/usr/local/jdk1.1.6v4a/bin:/usr/local/jdk1.1.6v4a/lib

Hope this helps.

-----Original Message-----
From: psteele <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, September 29, 1998 12:39 AM
Subject: help with swing!


>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