AddingJavaSupport

Differences between revisions 1 and 2
Revision 1 as of 2005-05-28 21:05:48
Size: 1819
Editor: adsl-213-190-44-43
Comment: imported from the old wiki
Revision 2 as of 2005-07-14 14:59:12
Size: 24
Editor: 81-178-112-178
Comment: removed content (page is out of date)
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Adding Java Support =

This method is depricated. Please go to [Java].

=== Step 1 ===
Download jre-1_5_0_02-linux-i586.bin from here http://java.sun.com/j2se/1.5.0/download.jsp (Update 2)


=== Step 2 ===
{{{
$ cd browse_to_your_download_folder
$ sh jre-1_5_0_02-linux-i586.bin
$ sudo mkdir /usr/java
$ sudo mv jre1.5.0_02/ /usr/java/
$ sudo chown -R root:root /usr/java/jre1.5.0_02/
$ sudo ln -s /usr/java/jre1.5.0_02/bin/java /usr/bin/java
$ sudo ln -s /usr/java/jre1.5.0_02/bin/java_vm /usr/bin/java_vm
$ sudo gedit /etc/bash.bashrc
}}}


=== Step 3 ===
Add this to the bash.bashrc
{{{
JAVA_HOME=/usr/java/jre1.5.0_02
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
}}}
then save it.


=== Step 4 ===
Then to make sure it works type this: {{{java -version}}}


=== Step 5 Adding Java Support to Firefox 0.93 (as delivered with Warty) ===
{{{
$ cd /usr/lib/mozilla-firefox/plugins
$ sudo ln -s /usr/java/jre1.5.0_02/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so
}}}


=== Adding firefox plugin support for AMD64 ===
Complete above steps with the amd64 version but don't do #5.

Download Blackdown Java package at:
ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.4.2/amd64/fcs/j2re-1.4.2-fcs-linux-amd64.bin

then run the following in your shell:
{{{
$ cd browse_to_your_download_folder
$ shj2re-1.4.2-fcs-linux-amd64.bin
$ sudo mv j2re1.4.2/ /usr/java/
$ sudo chown -R root:root /usr/java/j2re1.4.2
$ cd /usr/lib/mozilla-firefox/plugins
$ sudo ln -s /usr/java/j2re1.4.2/plugin/amd64/mozilla/libjavaplugin_oji.so libjavaplugin_oji.so
}}}
So, in essence you'll be using the 1.5 version from Sun for everything but the Mozilla plugin. The Blackdown Java package was the only one that I found with a plugin for AMD64.
Please go to ["Java"].

Please go to ["Java"].

AddingJavaSupport (last edited 2008-08-06 17:01:33 by localhost)