Red Hat Bugzilla – Bug 127534
[RFI] Compile libgcj with --enable-java-awt=gtk
Last modified: 2007-11-30 17:10:45 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7)
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
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Try to execute a java application that uses AWT and was compiled using
Fedora's gcc-java package.
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.
./a.out" executes fine.
But "./a.out" says:
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
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