On 64-bit Ubuntu, here is the command I used for installing java:
Code:
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jkd sun-java6-plugin sun-java6-fonts ia32-libs
The JDK should be optional, but for some unknown reason, my java only worked after I installed the JDK. The plugin and fonts should be optional too.
Here's a helpful link:
Ubuntu Linux Install Sun Java Development Kit ( JDK ) and Java Runtime Environment ( JRE )