This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Trouble compiling swt.jar
- From: Andrew Haley <aph at redhat dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: Ryan <ryan dot 7 at earthlink dot net>, java at gcc dot gnu dot org
- Date: Mon, 21 Nov 2005 13:51:05 +0000
- Subject: Re: Trouble compiling swt.jar
- References: <438138DA.3090106@earthlink.net> <43818864.7050900@gmail.com>
Ranjit Mathew writes:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Ryan wrote:
> > gcj -c swt.jar
> > I get several verification errors:
>
> [...]
>
> > The version of gcj in use is:
> > $ gcj --version
> > gcj.exe (GCC) 4.0.2
> >
> > Which I found on the thisiscool.com site. I'm running Windows XP SP2
> > with cygwin. Anybody have any ideas what I'm doing wrong?
>
> The bytecode verifier used in this version of GCJ is known
> to have many problems. You can either wait for 4.0.3 (or
> 4.1) or try a recent snapshot of either of these branches,
> where we have moved to a better bytecode verifier.
Simply build with -findirect-dispatch. That should do the trick.
Andrew.