This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj Questions
- From: Andrew Haley <aph at redhat dot com>
- To: "Josh Schlicker" <notyou64 at hotmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 3 Oct 2002 16:17:24 +0100 (BST)
- Subject: gcj Questions
- References: <F87MeGbS3WrV3jsAzJV0000bd83@hotmail.com>
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.