cannot install sun-java6-jdk
On google's page "Initializing a Build Environment"
I got this to install sun-java6-jdk, cause I have to compile android 4.0, and open-jdk cannot help me
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
However, when I execute the lines above, I still cannot install sun-java.
The solutions lies lines below, that is:
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu hardy-updates main multiverse"
$ sudo apt-get update
and then
you can
$ sudo apt-get install sun-java6-jdk
补充:移动开发 , Android ,