This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: natClass.cc, java::lang::Class::initializeClass() problems
- 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: 06 Dec 2006 11:30:05 -0700
- Subject: Re: natClass.cc, java::lang::Class::initializeClass() problems
- References: <4576E6C6.8050600@gmx.ch>
- Reply-to: tromey at redhat dot com
>>>>> "Marco" == Marco Trudel <mtrudel@gmx.ch> writes:
Marco> I'm trying to use AWT/Swing from a Sun 1.4.2_13 JRE. I can
Marco> successfully compile a minimal AWT application with AWT/Swing
Marco> from Sun instead of GNU classpath.
Note that this will require some work on your part. Also the result
is probably legally questionable.
Our AWT peer interfaces started out compatible with Sun's, but have
diverged over time -- Sun un-documented these interfaces and so we
made additions as we needed.
This isn't insurmountable, and it would be nice to be compatible
here. But, you definitely want to know about this before starting :)
Marco> 3. initIDs tries to load WComponentPeer (which is in the binary) but
Marco> runs in a JV_STATE_ERROR in natClass.cc:719
How did you compile WComponentPeer? ...
Marco> Maybe a problem with JNI?
... I'm wondering if you somehow forgot -fjni.
Otherwise all I can suggest is some debugging.
Tom