I just installed jdk1.2 on my linux 5.2 machine.  Most things seem to be
working fine (that is I can write a simple HelloWorld program that
compiles and runs.  I've also written a quick one that creates a window
with a Quit button that runs fine as well.)  I've having trouble taking
using swing componenet, however.  I've been trying to compile code I
wrote on jdk1.2 on WinNT and I get a series of errors of the sort:

Program.java:309: class JLabel not found in class DecisionTest
        JLabel label = new JLabel("label text");

This is in spite of the fact that I included an import javax.swing.*
commmand in the initial lines of the code.

I get a similar type of message when I try to run one of the included
demos.  For example when I try to execute the SwingSet class I get the
error:

java.lang.ClassNotFoundException: javax/swing/JPanel

It seems like my problem is that I have not set up the link to the
javax.swing.* libraries correctly, or maybe they don't exist yet on this
pre-release (?).  Any suggestions?


Thanks,

Sam


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to