I am trying to setup build enviroment for android on my ubunt10.04 machine. For that i want to install sun-java6-jdk as mentioned in source.andoid.com .
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
But now I am getting the error as no package for sun-java6-jdk.
so I want to know how to install suitable jdk for android build set up.
you could install sun jdk for Ubuntu 10.04 in the same way as 10.10. The steps for installing java in 10.10 is described in http://java.dzone.com/articles/sun-java-6-ubuntu-1004-1010
here's the steps of installing sun jdk, taken from that article:
add-apt-repository ppa:sun-java-community-team/sun-java6
apt-get update
apt-get install sun-java6-jdk
update-java-alternatives -s java-6-sun
in case the repository mentioned above not available anymore, here is a manual-ish alternative in installing JDK: http://codingforme.wordpress.com/2012/05/14/installing-oracle-java-jdk-6-or-7-on-ubuntu-12-04/
Sun JDK was dropped from Ubuntu due to licensing nonsense: http://news.softpedia.com/news/Canonical-Will-Remove-Java-From-Ubuntu-241147.shtml . Use openjdk instead.
Although there is a ppa here https://launchpad.net/~sun-java-community-team/+archive/sun-java6 that lets you install the SunJDK, it's very out-of-date and looks abandoned.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With