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: Launching ant with gij


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tom Tromey <tromey@redhat.com> writes:

>>>>>> "Arnaud" == Arnaud Vandyck <arnaud.vandyck@ulg.ac.be> writes:
>
> Arnaud> Unable to load default ProjectHelper due to java.lang.VerifyError:
> Arnaud>  verification failed at PC 262 in 
> Arnaud>  org.apache.tools.ant.helper.ProjectHelperImpl:parse(
> Arnaud>  (Lorg.apache.tools.ant.Project;Ljava.lang.Object;)V):
> Arnaud>  incompatible type on stack
>
> This is almost certainly an older version of gij with a buggy verifier.
> For this problem, the verifier in 3.4 should work ok.  (There are
> other bugs for which you would need an even newer version.)
>
> If you're already running 3.4, then that's news... you could also
> turn off the verifier easily enough, if you can recompile libgcj.
> Just comment out the body of _Jv_VerifyMethod in libjava/verify.cc.

I've build gcj from a cvs checkout:

gcj (GCC) 3.5.0 20040315 (experimental)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I'll try to comment the verify method.

> We should probably have some command-line control over this.  I
> believe the JDK doesn't bother verifying classes that come from the
> class path.

That would be good.

> Arnaud> arnaud@oz:~/prj/antgcj$ gij --classpath /usr/share/java/ant-1.6.jar:\
> Arnaud>  /usr/share/ant1.6/lib/ant-launcher.jar:/usr/share/java/jaxp-1.2.jar \
> Arnaud>  org.apache.tools.ant.launch.Launcher -Dant.home=/usr/share/ant1.6
> Arnaud> Unable to locate tools.jar. Expected to find it in /usr/local/lib/tools.jar
>
> You may need to set `build.compiler' to `gcj' to circumvent this error.

There is a <property name="build.compiler" value="gcj"/> that is enough
for ant1.5 but not for ant1.6 (the bug should be in there camp ;-))

- -- 
~/.signature not found

I think it's a little fantastic to try to form a picture in people's 
minds of the Debian archive administration team huddled over their 
terminals, their faces lit only by a CRT with a little root shell 
prompt and the command 
"/project/org/ftp.debian.org/cabal/s3kr1t/nuke-non-free.pl" all keyed 
in and ready to go, their fingers poised over the enter key, a sweat of 
lustful anticipated beading on their upper lips."
		-- Branden Robinson in 
		   <20031104211846.GK13131@deadbeast.net> discussing 
		   his draft Social Contract amendment
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAW5ir4vzFZu62tMIRAv4cAKCDfrKKwBFFzrcGWaGrUjkvCcrHFwCfQ1ZL
sggXUWjjyzKzf2KNU+NvbVU=
=SGmP
-----END PGP SIGNATURE-----


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