This one is real sloppy. Looks like a long time ago java-config used to set some $VARS in ~/.gentoo/java_env related to Java, but this no longer happens. So imagine my surprise trying to run ant as a normal user and finding it wouldn't work because it was looking for blackdown-1.3.1 when i only have 1.4.1 installed because java-config no longer updates that file. Well, actually, the bug is that ant still reference this deprecated file. Reproducible: Always Steps to Reproduce: 1. Find an old system 2. Update Java 3. Run java-config Actual Results: ~/.gentoo/java_env still is set to the old Java setup Expected Results: Either it should still update ~/.gentoo/java_env or (I suspect you want) ant should pay no attention to ~/.gentoo/java_env and the ant script needs modifying. Just deleting ~/.gentoo/java_env works for me.
Here's somebody else who had the same problem: http://forums.gentoo.org/viewtopic.php?t=187489&highlight=ant+jcoptions+java
java-config still sets it there when you use java-config --set-user-vm where does it say the file is deprecated?
I'll save you the effort of invalidating this and do it for you.