After updating to JDK 1.4.2_02 from Sun Ant 1.5.3 (installed via emerge) no longer works. The error message says that JAVA_HOME isn't set properly and jc_config cannot find java. Reproducible: Always Steps to Reproduce: 1. Emerge latest sun-jdk 2. Emerge ant 1.5.3 3. Run ant in shell
You have to set the changed path with 'java-config'. An einfo line in pkg_postinst () would be fine, btw.
I changed the path with java-config though I think the problem might be that I executed java-config as root. Because when I deleted the file ~/.gentoo/java-env everything worked as expected.
I consider this an invalid bug, so closing it.