This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcj Questions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]