> William Tchen wrote:
>
> Hi,
> I have a question concerning JFC. I'm using blackdown's jdk1.1.6v2 on
> RH5.1, and everything is working fine. I can compile the *.java files
> and run it using 'java classname'. But that is not the case with Swing
> component (Swing1.0.3). I compile a file that use Swing components
> (instead of awt). However, when I try to run it using 'java classname'
> it says 'Can't find class Classname'. I try to compile a file from
> Java Tutorial book ( downloadable from java.sun.com ), then run it and
> it works as expected. So I come back and recompile my swing java file
> again, compilation has no error but I still receive the same message.
> Anyone got some idea? Please give some suggestion, it is greatly
> appreciated.
> William Tran
>
I believe you have to explicitly place the swing jar in your
CLASSPATH. I use the following:
export CLASSPATH=/usr/local/swing-1.0.3/swingall.jar:.
-Gordon