Installing Java on Ubuntu Breezy

  1. Download the Java Development Kit (or Runtime Environment) for Linux, self-extracting.
  2. Edit /etc/apt/sources.list and unable universe and multiverse repositories:

    deb breezy universe multiverse
    deb breezy-security universe multiverse

  3. Install java-package and build-essential packages:
    # apt-get update # apt-get install java-package build-essential
  4. Create a Debian package from the Java Linux, self-extracting file downloaded in step 1 and install the resulting package:
    $ fakeroot make-jpkg sun-j2sdk1.5_.bin $ sudo dpkg -i sun-j2sdk1.5_.deb
  5. Register the new package as the default Java environment:

    # update-alternatives --config java

  6. Define the Java-home environment variable by adding the following line into ~/.bash_profile file:

    export JAVA_HOME=/usr/lib/j2sdk1.5-sun/

One thought on “Installing Java on Ubuntu Breezy

  1. I actually wanted to make a simple remark to be able to thank you for all of the great hints you are placing at this website. My prolonged internet lookup has finally been recognized with reasonable strategies to exchange with my pals. I d assume that many of us visitors are very lucky to dwell in a perfect community with very many perfect professionals with insightful things. I feel truly lucky to have seen your weblog and look forward to many more fun moments reading here. Thank you once more for everything.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s