On Fri, Jun 24, 2005 at 03:56:39PM -0700, Zac Medico wrote: > Matias Grana wrote: > > On Wed, Jun 22, 2005 at 04:29:54PM -0700, Zac Medico wrote: > > > >>Matias Grana wrote: > >> > >>>hi; > >>>As a result of an 'emerge -uD world', I've run across this error while > >>>emerging gnu-classpath. > >>> > >>>---------------------------------------------- > >>> > >>> > >>>>>>Unpacking source... > >>>>>>Unpacking classpath-0.14.tar.gz to > >>>>>>/var/tmp/portage/gnu-classpath-0.14/work > >>>>>>Source unpacked. > >>> > >>>[.... snip ....] > >>>checking for gcj... no > >>>checking for jikes... no > >>>checking for kJC... no > >>>checking for gcjx... no > >>>checking for ecj... no > >>>configure: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, or > >>>--with-gcjx > >>> > >>>!!! Please attach the config.log to your bug report: > >>>!!! /var/tmp/portage/gnu-classpath-0.14/work/classpath-0.14/config.log > >>> > >>>!!! ERROR: dev-java/gnu-classpath-0.14 failed. > >>>!!! Function econf, Line 485, Exitcode 0 > >>>!!! econf failed > >>>!!! If you need support, post the topmost build error, NOT this status > >>>message. > >>>---------------------------------------------- > >>> > >>>The file /var/tmp/portage/gnu-classpath-0.14/work/classpath-0.14/config.log > >>>is too large to send it to the list (of course, I can send it if needed). > >>>Where should I look for a hint? > >>> > >>>TIA, > >>>Matias > >> > >> > >>You need a java compiler. If you have a jdk like blackdown-jdk or sun-jdk > >>then you can use java-config to choose which one you want. You can > >>"emerge jikes" to get just a compiler. For gcj, you need to remerge gcc > >>with USE=gcj enabled. Almost any one of these compilers should work. > >> > >>Zac > >>-- > >>gentoo-user@gentoo.org mailing list > > > > > > But I already had blackdown-jdk: > > > > mati(rojo)~$ java-config -c > > /opt/blackdown-jdk-1.4.2.02/bin/javac > > mati(rojo)~$ java-config -j > > /opt/blackdown-jdk-1.4.2.02/bin/jar > > mati(rojo)~$ java-config -O > > /opt/blackdown-jdk-1.4.2.02 > > mati(rojo)~$ java-config -o > > > > Except that it seems I don't have a JRE configured. Might this be the > > problem? I have blackdown-jre-1.4.2.01 emerged, but it doesn't appear > > at the "java-config -o" command. > > > > Thanks for the answer, Zac, > > Matias > > > > The jre isn't useful because it doesn't have the javac compiler. > > You should only have to run these commands: > > java-config -S blackdown-jdk-1.4.2.02 > source /etc/profile > > After that, you should have /opt/blackdown-jdk-1.4.2.02/bin in your PATH. > > which javac > /opt/blackdown-jdk-1.4.2.02/bin/javac > > Zac
When I tried $ java-config -S blackdown-jdk-1.4.2.02 I got this error: Cannot find JAVA_HOME in config file /etc/env.d/java/22javacc So I copied the JAVA_HOME line from /etc/env.d/java/20blackdown-jdk-1.4.2.02 and could do the 'java-config -S'. But I still get the same problem when emerging world! Afterwards, I tried changing the JAVA_HOME line by other things (and doing env-update && source /etc/profile accordingly), but things don't improve. BTW: I already have /opt/blackdown-jdk-1.4.2.02/bin in my PATH, it doesn't help either. Any clues? Thanks a lot anyway. MatÃas -- gentoo-user@gentoo.org mailing list