This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: problem with GCJ while running java code
- From: "Andrew John Hughes" <gnu_andrew at member dot fsf dot org>
- To: Cesc <ffileppo at alice dot it>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 14 Apr 2008 09:13:18 +0100
- Subject: Re: problem with GCJ while running java code
- References: <15455624.post@talk.nabble.com> <47B2DBAD.50900@redhat.com> <15474342.post@talk.nabble.com> <47B40DE4.50801@redhat.com> <15477900.post@talk.nabble.com> <47B45137.8030506@redhat.com> <16648677.post@talk.nabble.com> <4802841F.4030200@redhat.com> <16670521.post@talk.nabble.com>
On 14/04/2008, Cesc <ffileppo@alice.it> wrote:
>
>
>
> Andrew Haley wrote:
> >
> >
> > That shouldn't make any difference.
> >
> > Andrew.
> >
> >
>
>
> Wow I managed to compile arm-linux-gcj, thanks a lot for your help.
>
> However I'm getting this error when I try to compile a java class:
>
> ./arm-linux-gnueabi-gcj /root/testfiles/HelloWorld.java
>
> arm-linux-gnueabi-gcj: error trying to exec 'ecj1': execvp: No such file or
> directory
>
> I did /contrib/.download_ecj before doing configure and make
>
> Any ideas?
>
> Thanks again,
>
> Francesco
>
>
>
>
>
>
> --
> View this message in context: http://www.nabble.com/problem-with-GCJ-while-running-java-code-tp15455624p16670521.html
>
> Sent from the gcc - java mailing list archive at Nabble.com.
>
>
download_ecj will obtain the required ecj JAR file. ecj1 is a script
or binary that executes the GCCMain class in this First check that
there isn't one in your GCJ build, but not on your path. If you can't
find one, a script called ecj1 containing:
#!/bin/sh
gij --classpath <path to ecj.jar> \
org.eclipse.jdt.internal.compiler.batch.GCCMain \
${1+"$@"}
or
gcj -oecj1 --main=org.eclipse.jdt.internal.compiler.batch.GCCMain ecj.jar
should suffice. gcj depends on ecj1 for source to bytecode compilation.
--
Andrew :-)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8