James Cassidy wrote:
>
> Could someone please let me know how to set things up to
> use the swing classes? I've got things set up to compile
> java programs ok, but can't get the swing lib to be located.
> (jdk1.1.6 is located in /usr/local).
>
> I've got a copy of swing101.zip, and placed it in various
> locations with various permutations of the CLASSPATH env
> var. But I keep getting the message:
>
> 'com.sun.java.swing.*' not found
>
> when I try to compile a program that imports from it.
>
> Thanks for any assistance!
> Jim.
You have to explicitly put it in your classpath
eg. CLASSPATH=blah:blah:/my/dir/swing.zip
Rather than just being in one of the directories.
--
Joe Carter Software Engineer
Brite Voice Systems Ltd, Gatley, Cheshire. UK.
mailto:[EMAIL PROTECTED]