From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040626 Firefox/0.8 Description of problem: I would like to see gcc-java built to support AWT. A GTK AWT peer may be built by giving gcc's configure script the --enable-java-awt=gtk argument. Though its implementation is not complete, it would be nice to be able to start testing gcc's GTK AWT peer using a Fedora-provided package. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: Try to execute a java application that uses AWT and was compiled using Fedora's gcc-java package. Additional info:
I looks like the GTK AWT peer is built as of gcc 3.4.1-8. However, on PowerPC things don't seem to work quite right. "gcj --main=HelloWorldAWT HelloWorldAWT.java" compiles fine. "LD_PRELOAD=/usr/lib/gcc/ppc64-redhat-linux/3.4.1/lib-gnu-java-awt-peer-gtk.so ./a.out" executes fine. But "./a.out" says: Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit() (/usr/lib/libgcj.so.5.0.0) [...] Why would the explicit LD_PRELOAD be needed?
This seems to be fixed in gcc-java-3.4.1-10. LD_PRELOAD is no longer needed.