1. Home
  2. Computing & Technology
  3. Linux

Java (1.5)

Ubuntu Documentation

By Juergen Haas, About.com

Note: The following instructions are only for i386 and amd64 computers. For PowerPC machines, please look at the Ubuntu Wiki.

  • To install the Java Runtime Environment (to run java programs), install the sun-java5-jre package from the Multiverse repository (see the section called "Extra Repositories").

  • To install the Java Development Kit (to compile java programs), install the sun-java5-jdk package from the Multiverse repository (see the section called "Extra Repositories").

  • To choose which java installation you want to use, run:

    sudo update-alternatives --config java

    and pick the option which you prefer.

* License

* Ubuntu Desktop Guide Index

Explore Linux

More from About.com

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux Distributions
  5. Popular Linux Distros
  6. Ubuntu
  7. Ubuntu Documentation
  8. Ubuntu Desktop Guide - Java (1.5)

©2008 About.com, a part of The New York Times Company.

All rights reserved.