'''11 - To install Java player to run applets, go to http://www.java.com, and download the linux self stracting file for 32 bit linux computers (I was surprised to see than this file works in amd64 bits Breezy installation) :'''

http://www.java.com/en/download/linux_manual.jsp

'''12 - To install java :'''

sudo bash

chmod 777 ./jre-1_5_0_06-linux-i586.bin

''(this file name will depend on the java version you download)''

./jre-1_5_0_06-linux-i586.bin

''(it will ask you some questions)''

mkdir /usr/local/java32

cp -r -p ./jre1.5.0_06/* /usr/local/java32

cd /usr/local/firefox32/plugins/

ln -s /usr/local/java32/plugin/i386/ns7/libjavaplugin_oji.so ./

'''13 - Restart firefox32 and check if java is working :'''

firefox32 &

'''14 - Visit : http://www.java.com/en/download/installed.jsp'''

'''15 - Add an icon at the top panel to start this 'cool' browser :'''

Click with the right button at the top panel

Choose : Add to panel

Choose : Custom application launcher, and press 'Add' button

Name : firefox32

Generic name : Firefox 1.5 32 bits

Comment : Firefox with 'Flash' and 'Java'

Command : firefox32

Type : Application

Icon : /usr/share/pixmaps/mozilla-firefox.png

'''16 - Enjoy the net !'''

IMPORTANT NOTE:

PhilOSparta said in 'Ubuntu forums' that sound was not working properly for him. He solved the problem using the next line (Ubuntu Dapper with gstreamer0.10 will have this issue solved) :

Java is a technology from Sun Microsystems. There are several implementations, of which three will be talked about here:

Free Java: GNU classpath and others, these are already included in Ubuntu as of Ubuntu 5.10

Sun Java: Sun Java is the reference implementation. As of Ubuntu 6.06, it is included in multiverse

IBM/Blackdown Java: IBM/Blackdown Java, another implementation, is included in multiverse of Ubuntu 5.10 and later

Java is also very different based on your processor architecture. Most computers are i386, Mac are PowerPC (although newer MacBooks and MacBook Pros are i386) and some newer computers are amd64. Use the following chart to see which version of Java you should install:

Release

6.06

5.10

5.04

i386

Sun Java

PPC

amd64

Sun Java *

There is no browser plugin for amd64. You will need to install a 32bit version of Firefox. See below.

Installing Java

Ubuntu/Kubuntu 6.06

Sun Java5: Install it from the Applications -> Add/Remove... menu, or install the sun-java5-bin package.

Blackdown Java2 1.4 packages: Install the j2re1.4 package, available in the multiverse repositories. Install it from the Applications -> Add/Remove... menu, or install the j2re1.4 package.

Ubuntu/Kubuntu 5.04

amd64: Installing the Mozilla/Firefox plugin

Note: You should install the rest of Java by one of the above methods.

Providing the Mozilla/Firefox plugin is available in your distribution of the JRE (currently Sun's doesn't include it), you can create a symbolic link to it inside the Mozilla and Firefox plugins directories. Apparently copying the plugin will not work. The installation directory will vary depending on whethere you installed using method one or two, so both are documented below: For method one:

PowerPC

IBM produces a Java Development Kit (JDK) for its POWER computers, which happens to also work on PPC. They are the only place to make available recent versions of Java for PPC Linux. Their recent versions consist of versions 1.5.0 and 1.4.2 of Java. They also have a 1.3.1 version, but there is no reason to use that. This page will not discuss the use of IBM's 1.3.1 version.

The 1.4.2 JDK is known to work on G3, G4, and G5 Macs, as well as older 604e and 603e Macs. The 1.5.0 JDK is known to work on G3, G4, and G5 Macs, and it is not yet known whether it works on older 604e and 603e Macs. It is not yet known whether either one works on non-Mac PowerPCs. Please update the Wiki if you have more information!

To get IBM's JDK, go to http://www-128.ibm.com/developerworks/java/jdk/linux/download.html, and choose an SDK for 32-bit iSeries/pSeries. Be sure to get the 32-bit version even if you have a G5. You may choose to download both the latest 1.5.0 and 1.4.2 versions and install both if you wish. In any case, periodically check that page for newer Service Releases, and repeat the process described here whenever there is a new one. There is currently no way to keep track of which Service Release you are on under Ubuntu, so make a note of it. As of this writing, SR1 is the latest of the 1.5.0, and SR5 is the latest of the 1.4.2 version. You will have to register before being allowed to download anything. When you reach the download page, download the TGZ version of the SDK.

Installation Process

To use the TGZ with Ubuntu, you have to convert it to a DEB. Make sure you have the tool make-jpkg installed from the Multiverse repository (See ["AddingRepositoriesHowto"]):

Note on libraries: the IBM Java binaries depend on libstdc++5 and libgtk1.2 packages. At least in Dapper it's possible that these libraries are not installed. In this case, make-jpkg will give a lot of warnings about not being able to find dependecies for library files. To get the dependencies set correctly (and to get the Java to work at all), make sure you have installed libstdc++5 and libgtk1.2

before issuing the make-jpkg command.

To set the new JRE or JDK as the default, you may need to update your Java alternatives. Run the following command then, when prompted, choose your preferred Java environment from the list. If update-alternatives tells you that there is only one Java environment, continue onward! If you chose to install both 1.4.2 and 1.5.0 versions, you may run this command at any time to switch the one subsequently opened Java applications will use. The one that the Firefox and Opera web browsers use will be unaffected. Which one the Konqueror web browser uses, and whether or not it would be affected, depends on your KDE system settings.

sudo update-alternatives --config java

If you installed a 1.4.2 version, regardless of whether or not you installed a 1.5.0 version, and your processor is not a G5, you must perform yet another step to get it to work. For a G3 or G4, use the following command:

sudo sh -c 'echo "JITC_PROCESSOR_TYPE=6" >> /etc/environment'

For a 604e or 603e, instead use:

sudo sh -c 'echo "JITC_PROCESSOR_TYPE=5" >> /etc/environment'

You may have to log out or restart the computer for this to take effect.

IF you installed the JDK, the following code tests that everything's working. Open a terminal, and try this for version 1.4.2:

To control which Java the Konqueror web browser uses, go to your KDE system settings. Select Internet & Network -> Web Browser -> Java & JavaScript, and change the Path to Java executable to either /usr/lib/j2sdk1.4-ibm/bin/java or /usr/lib/j2sdk1.5-ibm/bin/java. To control which Java the Opera web browser uses, go to Tools -> Preferences -> Advanced -> Content -> Java options, and change the path to either /usr/lib/j2sdk1.4-ibm/jre/bin or /usr/lib/j2sdk1.5-ibm/jre/bin.