ubuntu-restricted-extras should work for you, like phunehehe mentioned.
Since Ubuntu 10.4 the
sun-java* packages have moved from the "Multiverse Repository" to the "Partner Repositories".
Add the partner repositories to your package sources and you should be able install
See "Adding Canonical Partner Repositories" int the ubuntu wiki.
To install Java you will have to decide if you want the OpenJDK or the Sun/Oracle Version. Java by itself is platform independent, but sometimes developers write applications which have dependencies to com.sun.* packages. These packages are only available in the HotSpot VM, which is the virtual machine of the Sun/Oracle Java distribution. To be on the safe side, you should use the Sun/Oracle Java version.
32-bit is available as package from the partner repository, 64-bit not yet, as far as I know and must be installed by hand:
- Download your Version (32-bit or
64-bit) from the Oracle Download
- Create a folder for the
installation (e.g.: /opt/java/64)
- Install the .bin file:
- Don't forget to tell your system about the new java version with
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/64/jreXXX/bin/java" 1 and
sudo update-alternatives --set java /opt/java/64/jreXXX/bin/java
These are the steps to install a JRE on your system.
Now you have to install the plugin to the browser:
- If it doesn't exist, create
- Link the plugin: