I originally installed Java support following the Gentoo Java Guide's recommendation.

Code:

emerge virtual/jdk

I ended up needing the Oracle Java 7 package and I was able to install it and configure it as the default system-vm, but now I can't seem to remove the Icedtea Java files.

I tried emerge --unmerge virtual/jdk and emerge --unmerge virtual/jre but when I try to run emerge --depclean it keeps saying those packages need to pull in dependencies and asks me to run emerge --update --newuse --deep --with-bdeps=y @world at which time Icedtea is pulled back in.

How can I rid all references to Icedtea and only use the Oracle Java 7 VM?

I tried "emerge --unmerge icedtea-bin" followed by "emerge --depclean" which says virtual/jdk needs to pull in missing dependencies and to run the command "emerge --update --newuse --deep --with-bdeps=y @world"

I also tried:

emerge --unmerge virtual/jre
emerge --unmerge virtual/jdk

followed by emerge --depclean with no luck. I can't seem to remove the reference to virtual/jre and virtual/jdk which exist somewhere in my portage tree.