Firefox and Java
As I edit this on 1 May 2008 a working full-featured 64 bit java browser plugin has only become available relatively recently. This is Icedtea and unless things have changed very recently it is still not available in portage. This and other options are set out below.
Firefox and Sun's OpenJDK/IcedTea JDK
The Java overlay now contains ebuilds for both IcedTea6 (Java 1.6) and IcedTea (the forthcoming Java 1.7, which is not yet standardised). Unless you intend to do JDK development work, we suggest installing icedtea6.
IcedTea6 requires an existing JDK in order to build, so you first need to install gcj-jdk, also from the overlay. (Alternatively, you could temporarily install the binary, non-plugin-including version just to compile from; see next paragraph.) This depends on gcc 4.3.1 being built with the gcj USE flag. You don't have to have this selected as your default compiler, but it has to be installed as only this version of gcj supports the 1.5 language features of Java. Once gcj-jdk is installed, you can emerge icedtea6. For further information, please see the IcedTea wiki.
If you don't want the hassle of installing gcc 4.3.1, you can first emerge sun-jdk, then emerge icedtea6, then emerge -C sun-jdk. This will let you use the 64-bit binary version provided by Sun to compile your IcedTea. Note that this isn't as "pure" a method as above; while you end up with only locally-compiled software on your finished system, you used precompiled binaries to bootstrap.
Then make the new icedtea java the default 64 bit browser plugin: eselect java-nsplugin set 64bit icedtea6-1.2. That's it. You should now have a working amd64 java browser plugin.
Firefox and Sun's Legacy Proprietary JDK
Unfortunately while Sun have now given us an amd64 edition of Java, it doesn't include Java Web Start or the Netscape-compatible plugin (which Firefox uses). And because the portage packages all install the 64-bit edition now, the 32-bit edition has to be installed manually.
emul-linux-x86-java-1.6 can be installed from portage for 32 bit support so please use this instead of manual method!
Updated Method Using emul-linux-x86-java-1.6
Make sure you have emerged the following packages:
- emerge mozilla-firefox-bin
- emerge =emul-linux-x86-java-1.6*
NOTE: the mozilla-firefox-bin package will install the 32-bit version even if you are running a 64-bit system
NOTE: the emul-linux-x86-java package must have the nsplugin use flag enabled!
|Code: Create symlink to Java nsplugin|
mkdir -p /usr/lib64/nsbrowser/plugins cd /usr/lib64/nsbrowser/plugins/ ln -s /opt/emul-linux-x86-java-1.6.0.07/plugin/i386/ns7/libjavaplugin_oji.so .
Temporary workaround for Firefox 3 RC3 and emul-linux-x86-java-1.6.0.07
|Code: This tip from gerardo http://forums.gentoo.org/viewtopic-p-5098527.html#5098527|
cd /opt/firefox/plugins ln -s /opt/emul-linux-x86-java-1.6.0.07/plugin/i386/ns7/libjavaplugin_oji.so .
Go to http://java.com/en/download/linux_manual.jsp and download the self-extracting file (not the rpm). Make sure you download the 32-bit (i586) version of JRE.
Once downloaded, install Java by running: sh jre-1_5_0-linux-i586.bin
Follow the installation instructions to complete the installation of Java. Next, move the newly installed Java to under /opt (where all binary packages should go) with: mv jre1.5.0_06 /opt/sun-jre-bin-1.5.0.06-i586
Now create a symlink in a directory that will be searched by browsers looking for Netscape-compatible plugins:
|Code: Create symlink to Java nsplugin|
mkdir -p /usr/lib32/nsbrowser/plugins cd /usr/lib32/nsbrowser/plugins/ ln -s /opt/sun-jre-bin-1.5.0.06-i586/plugin/i386/ns7/libjavaplugin_oji.so .
Firefox and Blackdown JDK
Check that you have dev-java/blackdown-jdk installed and that it was built with the nsplugin use flag. Then create a symlink so Firefox will find the plugin:
ln -s /opt/blackdown-jdk-YOURVERSIONHERE/jre/plugin/amd64/mozilla/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/libjavaplugin_oji.so
Created by NickStallman.net, Luxury Homes Australia
Real estate agents should list their apartments, townhouses and units in Australia.