Chris AlexanderChris Alexander
Building Android: Getting sun-java5-jdk package on Ubuntu 9.10 Karmic / 10.4 Lucid
Wednesday, May 19th, 2010 by

I’ve been playing around with getting started building Android (I’d like to get 2.0 working on my Joggler). To build Android under Linux, you need the sun-java5-jdk package.

This is due to a conflict in the @Override command, which means you can’t use the Java 6 JDK for this task.

Unfortunately the sun-java5-jdk package isn’t available by default in the Karmic or Lucid repositories, so you need to grab it from somewhere else. To save you searching, here’s the howto:

1. Enable the jaunty-updates multiverse repository

You can do this by adding a single line to your sources.list file.

First, open your sources.list with the command:

sudo vim /etc/apt/sources.list

Then you can add the following line (making sure you comment – # – with why you added it) to the file:

deb http://cz.archive.ubuntu.com/ubuntu jaunty-updates main multiverse

Then you can save that and quit.

2. Refresh sources

You need to do an update to refresh your repository list then you’re good to go:

sudo apt-get update

3. Install package

And finally to install:

sudo apt-get install sun-java5-jdk

4. Continue process

Continue the process with the instructions here.

Search
Related Posts
Post Tools

One Response to “Building Android: Getting sun-java5-jdk package on Ubuntu 9.10 Karmic / 10.4 Lucid”

  1. Chris says:

    Hi,

    thanks for that. It is exactly what i needed.

    cheers,
    Chris

Leave a Reply