Installing java from sun on the new Ubuntu 9.10

How do I install Sun Java Development Kit (JDK) and Java Runtime Environment (JRE) under Ubuntu Linux? It appears that there are multiple JRE installed by default under Ubuntu. How do I select and use Sun JRE only?

This is a tough question, yet here’s a simple answer, even for beginners.

Continue reading “Installing java from sun on the new Ubuntu 9.10”