Joe Carter wrote:
> 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.
True...if swing101.zip is a class archive. More likely, it's a regular
archive that you need to unpack somewhere -- giving you assorted
jarfiles, documentation, and source. You'll need to add one or more of
those jarfiles to your CLASSPATH (the jarfiles themselves, not the
directories they live in).
Nathan Meyers
[EMAIL PROTECTED]