HowTos
From JaxlugWiki
Since Gentoo introduced java-config2, these steps are no longer necessary. Simply emerge the sun JDK and set it using the java-config tool.
[edit] HOW TO GET the Sun Java SDK running on Gentoo and Firefox
07/03/2005 Matt Young (AKA Solid)
1) emerge the sunsdk
#> ACCEPT_KEYWORDS="~x86" emerge -N sun-jdk
Note: if you need the 1.5 java sdk, you must uncomment the mask in the /usr/portage/profiles/package.mask file for the following lines:
>=dev-java/sun-jdk-1.4.99
>=dev-java/java-sdk-docs-1.4.99
2) configure Gentoo to use the Sun SDK
#> java-config -S <SUN JVM ID>
List available jvm ids by executing "java-config -L"
3) symlink the javaplugin from the mozilla plugins directory to the ns7 java plugin from Sun
navigate to the mozilla plugin dir ("cd /usr/lib/MozillaFirefox/plugins")
#> ln -s /opt/<SUN JDK >/jre/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
4) verify that Firefox's default java plugin name is the same as Suns plugin name. If not change it in firefox
In Firefox, navigate to "about:config" in the address bar.
scroll down to java.java_plugin_library_name
if the value that coorsponds to this key is not the same as the name linked in the mozilla plugin dir, double click the value and change it to match the name in moz plugin dir.
5) Close mozilla and reopen browser.
