This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trouble compiling swt.jar


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]