[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GCJ and AWT



>>>>> "Antonio" == Antonio Fiol Bonnín <fiol.bonnin@terra.es> writes:

Antonio> As of February 2002, I read on this list archives that AWT was not
Antonio> usable. However, it seems that since then things may have changed.

Alas, no.

We do have most of the java side of AWT written (though there are
known bugs and problems).  That makes it look like AWT works, since
you can compile many programs against it.

Antonio> What I get is:
Antonio> Exception in thread "main": java.awt.AWTError: Cannot load AWT
Antonio> toolkit: gnu.java.awt.peer.gtk.GtkToolkit

What you're seeing here is that the peers are not finished.  Currently
they aren't even in the gcj source tree.

Antonio> I have tried to install the classpath package, and to export
Antonio> LD_LIBRARY_PATH=/usr/lib/classpath before I try to run my app, but it
Antonio> does not seem to help at all.

It isn't quite that easy to get the peers, unfortunately.  We're
planning to make the Classpath peers available in gcc 3.4 (it is too
late for 3.3, bleah).

Antonio> I did not find much info on http://www.gnu.org/gcc/java

How can I improve the web pages?

Tom



Reply to: