Re : can not find jc1 gcj or jvgenmain after gcc install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

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

Thanks

Asma



----- Message d'origine ----
De : Andrew Haley <aph@xxxxxxxxxx>
À : gcc-help@xxxxxxxxxxx
Envoyé le : Lun 13 septembre 2010, 19h 18min 54s
Objet : Re: can not find jc1 gcj or jvgenmain after gcc install

On 09/13/2010 05:13 PM, charfi asma wrote:
> Hello,
> 
> I have pb with the java fe
> 
> I installed gcc 4.4.1 fron source and current gcc version from git ($ git clone 
>
> git://crules.org/git/gcc-dev.git) but in both versions I can not compile java 
> files
> 
> I looked for the java compiler gcj but I do not find an executable called gcj 
>or 
>
> jc1 (just like g++ or cc1plus for c++ front end)
> Is there any configuration option to well install java fe other than 
> --enable-languages=java ?
> 
> when I compile java file using gcj -save-temps Hello.java --main=Hello -v 2>&1 
>| 
>
> grep ecj I get an empty .jar
> 
> [charfi@is010178 Hello]$ which gcj
> which: no gcj in 
>(/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/export/home/charfi/bin:/usr/bin)
>)
> 
> 
> 
> [charfi@is010178 Hello]$ which g++
> /usr/bin/g++

You need to tell us exactly what you did.  What commands, configure args,
and so on, so that someone can duplicate what you did.

Andrew.







[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux