gcj Questions

Andrew Haley aph@redhat.com
Thu Oct 3 08:16:00 GMT 2002


Josh Schlicker writes:
 > I recently installed gcc-3.2 on my home system, and i have a problem with 
 > gcj.
 > 
 > Whenever i try to compile i get errors like the following:
 > 
 > mainWindow.java:28: Class or interface 'javax.swing.SwingConstants' not 
 > found in import.
 > import javax.swing.SwingConstants;
 > 
 > mainWindow.java:30: Superclass 'JFrame' of class 'mainWindow' not found.
 > public class mainWindow extends JFrame implements ActionListener, 
 > ChangeListener, WindowListener
 > 
 > I know i need to set up CLASSPATH, but i am not sure what to set it to. If 
 > this helps, i configured gcc with the following line:
Firstly, we don't implement Swing.
CLASSPATH shouldn't need to be set.
 > configure --prefix=/usr --enable-threads
 --prefix=/usr is really not a good idea. Use --prefix=/usr/local
instead.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /