Cannot Get Swing to work in a Java Applet?
Hi,
I cannot get a small java program to run using Suse 8.0. I am trying to compile an Applet program and I get the following error:
cj@linux:~/Applet Example2> javac My2ndApplet.java
My2ndApplet.java:2: Package javax.swing not found in import.
import javax.swing.*;
^
My2ndApplet.java:4: Superclass JApplet of class My2ndApplet not found.
public class My2ndApplet extends JApplet {
^
I've reinstalled the Java 2 SDK version 1.3.1 that came with Suse and no luck...its only when I try to use Swing that I get errors; otherwise the JDK works fine..Even tring to compile a 'Hello World' in an applet give me the same error as above..
Any ideas?
Thanks!!
|