Until JDK 1.2 arrives for Linux you include the path to swing.jar in your 
CLASSPATH explicitly a la

export SWING_HOME=/usr/local/swing-1.1-beta3
export CLASSPATH=.${SWING_HOME}/swingall.jar

Pete
______________________________ Reply Separator _________________________________
Subject: swing-1.1beta3
Author:  wdacruz ([EMAIL PROTECTED]) at lon-mime
Date:    01/12/98 22:11


I'm having some problems to install swing-1.1beta3 on RH5.2.

1. I installed jdk in /java/jdk117_v1a/
2. I downloaded swing11-beta3.tar.z into /java
3. tar xvzf swing11-beta3.tar.z created directory /java/swing-1.1beta3 + 60 
html files own by user uucp and group 143.
4. I added the following lines to .bash_profile for user /home/wdacruz: 
PATH:/java/swing-1.1beta3:$PATH
CLASSPATH=.
SWING_HOME=/java/swing-1.1beta3
export PATH CLASSPATH SWING_HOME
5. wdacruz env shows:
...
PATH=/java/swing-1.1beta3:/java/jdk117_v1a/bin:.... 
SWING_HOMEL=/java/swing-1.1beta3
...

6. I tested swingapplication.java that start: 

import javax.swing.*;   // This is the final packge name.
// import com.sun.java.swing.*; // Used by JDK 1.2 Beta 4 and all
                             // Swing releases before Swing 1.1 Beta 3.
...

7. javac swingapplication.java
I got the error message: Package javax.swing not found in import 
import javax.swing.*;
       ^        
JDK1.1.7_v1a works fine, but the compiler does not find the swing 
package. What I am doing wrong?  Did I installed swing-1.1beta3 in the 
wrong d

Reply via email to