In order for it to work, you must logout of KDE, and back in. Not sure if this applies to other window managers, or what-not.
Steps to Reproduce:
1. eselect java-vm set sun-jdk-1.5 # for the first time
echo $JAVA_HOME is set to /etc/java-config-2/current-system-vm/
source /etc/profile # changes it
su - trenta # changes it
logging out and back in changes it.
Can this even be classified as a bug? If there is a way around this happening, I would say it should be.
oops, sorry, that's
eselect java-vm set user sun-jdk-1.5