Re: problem with GCJ while running java code
"Andrew John Hughes" <[email protected]>
| Newsgroups | gmane.comp.gcc.java.devel |
|---|---|
| Message-ID | <[email protected]> |
On 14/04/2008, Cesc <[email protected]> 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