java problem with Ubuntu 9.10

I am having trouble compiling android on Ubuntu 9.10. android requires
java 1.5 however Ubuntu 9.10 ships with Java 1.6.

Is anyone having this problem, workaround would be appreciated

sghimire

Ubuntu 9.10 repo does not have java 1.5 because it reached its EOL. You can add the 9.04 repos in 9.10 to get Java1.5. I did the same and android compiled correctly.

to get the repo for java5 add these lines to the end to your /etc/apt/sources.list

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

and then try installing…

-Ankit