How to set Classpath

I wanted to run HelloWorldSwing.java which is available in the tutorial.

i wanted to run from linux. java is installed in /usr/java/jdk1.5

The error is

HelloWorldSwing.java:5: Can't find default package `javax.swing'. Check the CLASSPATH environment variable and the access to

the archives

.

So how do i get off this message

[369 byte] By [saji_surendrana] at [2007-10-2 16:27:09]
# 1
Duplicated here http://forum.java.sun.com/thread.jspa?threadID=723186and already answered.
ChuckBinga at 2007-7-13 17:27:14 > top of Java-index,Developer Tools,Java Compiler...