emerge -upv dev-java/sun-jre-bin dev-java/sun-jdk
These are the packages that would be merged, in order:
Calculating dependencies ... done!
Total: 0 packages, Size of downloads: 0 kB
!!! The following installed packages are masked: - dev-java/sun-jdk-126.96.36.199 (masked by: dlj-1.1 license(s)) A copy of the 'dlj-1.1' license is located at '/usr/portage/licenses/dlj-1.1'.
- dev-java/sun-jdk-188.8.131.52 (masked by: dlj-1.1 license(s)) - dev-java/sun-jre-bin-184.108.40.206 (masked by: dlj-1.1 license(s)) For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook.