1. If dev-java/blackdown-jre is merged after the jdk, ant emerge will fail like this: ---start--- root@gamma aeoo # emerge dev-java/ant Calculating dependencies. done! >>> emerge dev-java/ant-1.4.1-r1 to / >>> md5 ;-) jakarta-ant-1.4.1-src.tar.gz >>> Unpacking source... >>> Unpacking jakarta-ant-1.4.1-src.tar.gz >>> Source unpacked. ... Bootstrapping Ant Distribution ... Compiling Ant Classes ./bootstrap.sh: /opt/blackdown-jre-1.3.1/bin/javac: No such file or directory ... Copying Required Files cp: cannot create regular file `classes/org/apache/tools/ant/taskdefs': No such file or directory cp: cannot create regular file `classes/org/apache/tools/ant/types': No such file or directory ... Building Ant Distribution Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main ... Cleaning Up Build Directories ... Done Bootstrapping Ant Distribution Bootstrap FAILED ---end--- What's interesting is that this failure is not even noticed by portage, and portage thinks that ant was installed successfully. If I unmerge jre, it will remove /etc/env.d/20java. ---start--- CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" ---end--- Using: sys-apps/portage-1.8.6-r1 Everything works perfectly if I simply emerge jdk and then ant.
Try remerging your JDK. The old JDK/JRE scheme had a flaw with which path took precedence