Get java5 from the Jaunty repository. Java5 should be put back in the Karmic repository. Android java compiling only works on Java5 because of the @Override annotation thingie I did see this tidbit: So to get the repo for java5 add these lines to your /etc/apt/sources.list

deb jaunty multiverse
deb jaunty-updates multiverse
On 9 May 2010