I've found debian package on http://packages.ubuntu.com/hardy/devel/sun-java5-jdk It depends on sun-java5-jre. So I'm going to http://packages.ubuntu.com/hardy/sun-java5-jre to install it first. But it depends on sun-java5-jdk!! How is it possible to install???
Hi just download all 4 hardy packages (from the same location you have posted [i can't post more than 2 urls, sorry]) into one directory.
And then run the command
And after this has finished (i think it will complain about unixodbc and some things) run
Then you should have a running java 1.5.
Cheers
I also needed to install java5 (in order to compile froyo on a 32 bits system) on ubuntu 11.04 and this did the trick in my case:
It took a while, some unrelated warnings were fired, but at the end it was installed. After the installation was finished I just did:
and switched to java5, which was one of the alternatives.
You should be able to go back to java 6 after that just by issuing an uptade-alternatives call.