This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re : can not find jc1 gcj or jvgenmain after gcc install
On 09/14/2010 01:03 PM, charfi asma wrote:
> this is exactly what I did to compile Hello.java using GCJ
>
> 1. downlad a release from the GCC web site:
> 2. extract the bz2 file : # tar -xvjf gcc-4.5.1.tar.bz2
> 3. sh ./download_prerequisites after downlowd from
> http://gcc.gnu.org/svn/gcc/trunk/contrib/download_prerequisites
>
> 4. # mkdir build_java
> 5. # cd build_java/
> 6. # ../gcc-4.5.1/configure --enable-languages=c,c++,java --prefix=/usr/local2
> 7. # make
> 8. # make install
> 9. # /usr/local2/bin/gcj -save-temps Hello.java --main=Hello -v 2>&1 | grep ecj
>
> and I get this error:
>
> ecj1 Hello.java -g1 -fbootclasspath=./:/usr/local2/share/java/libgcj-4.5.1.jar
> -g1 -fsource=1.5 -ftarget=1.5 -fzip-dependency Hello.zip -fzip-target Hello.jar
> gcj: error trying to exec 'ecj1': execvp: Aucun fichier ou dossier de ce type
>
> info about my platform:
>
> # uname -a
> Linux is010178 2.6.31.6-server-1mnb #1 SMP Tue Dec 8 16:48:07 EST 2009 i686
> Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz GNU/Linux
Run contrib/download_ecj and rebuild libgcj.
Andrew.