Hello. I'm having a problem trying to compile Java apps in Linux. Code is below:

import javax.swing.*;

public class test {
public static void main( String[] args ) {
JFrame frame = new JFrame( "Hello, Java" );
JLabel label = new JLabel( "this is a JLabel", JLabel.CENTER );
frame.getContentPane().add( label );
frame.setSize( 300, 300 );
frame.setVisible( true );
}
}

I'm getting "test.java:5: error:Cannot find class "JFrame" [JLS 8]

I have j2sdk1.4.0 installed, which is supposed to include swing. I'm a bit stumped & was wondering if anyone here could give me some direction.

Many, many thanks in advance.

ea