This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: AWT with static gcj
- From: Tom Tromey <tromey at redhat dot com>
- To: Marco Trudel <mtrudel at gmx dot ch>
- Cc: GCJ <java at gcc dot gnu dot org>
- Date: 20 Sep 2006 16:46:08 -0600
- Subject: Re: AWT with static gcj
- References: <4511A28D.3080701@gmx.ch>
- Reply-to: tromey at redhat dot com
>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:
Marco> When running a simple AWT application, I get:
Marco> Exception in thread "main" java.lang.UnsatisfiedLinkError: libgtkpeer:
Marco> libgtkpeer.a: cannot open shared object file: No such file or directory
Marco> at java.lang.Runtime._load(bin)
Marco> at java.lang.Runtime.loadLibrary(bin)
Marco> at java.lang.System.loadLibrary(bin)
The Gtk AWT peers use JNI and are dynamically loaded, via
System.loadLibrary, when the peer code is activated.
In a --disable-shared build, there is no libgtkpeer.so that can be
loaded dynamically. So, it dies. I don't know why you get that
particular error message, it seems weird to me.
You could try using libltdl's preloading support to get around this.
I have never tried it with libgcj but I suppose it could work.
Tom