On Tue, 16 Nov 1999 16:33:36 -0600, [EMAIL PROTECTED] wrote:
>Hi:
>
>I installed BlackDown jdk_1.1.7-v3-glibc-x86.tar.gz on RedHat 6.1 Linux.
>There is no problem to compile a simple java application (hello.java). But
>got compile error when compile an application with Swing component. The
>error message is "Package com.sun.java.swing.* not found in import". What I
>missed? Should I download and install JFC/Swing package separately?
Well, two things:
1) Swing is not part of JDK 1.1.x - you need to download it from Sun
and put the swingall.jar file into your classpath.
2) The package name com.sun.java.swing.* is most likely from an older
swing (pre-Swing 1.1 and thus pre-Java 1.2 also) naming. You may
need to either use the older swing (Swing 1.0.3 or a beta version
of Swing 1.1) or fix your code to use the final javax.swing package
naming.
Remember, Swing was an add-on in JDK 1.1.x Download the Swing 1.1.1 (which
is the current GA version) and add its swingall.jar to your classpath.
--
Michael Sinz ---- Technology and Engineering Director/Consultant
"Starting Startups" mailto:[EMAIL PROTECTED]
My place on the web ---> http://www.users.fast.net/~michael_sinz
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]