If you do an "emerge sun-jdk" and then reinstall later with an "emerge sun-jdk" without unmerging in between, the /etc/env.d/java environment file for the sun-jdk gets whacked, causing java-config to not work. The problem occurs because the file is written /etc/env.d/java before the previous version is automatically unmerged in an emerge reinstall. This caused severe headaches for me. I think this may actually be a problem for several of the VM's. Sorry if this is a duplicate, I looked for little while. Also I'm sorry I don't have more details of my configuration. -Scott Feel free to request more information at seveirein@yahoo.com
*** Bug 10789 has been marked as a duplicate of this bug. ***
*** Bug 10855 has been marked as a duplicate of this bug. ***
I updated java.eclass that was causing this, can you test it and reopen the bug if if appears again ?