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
本文介绍了如何在Ubuntu系统上解决无法安装sun-java6-jdk的问题。通过更改软件源并更新包列表,最终成功安装了所需的Java运行环境,以便进行Android 4.0的编译工作。
2533

被折叠的 条评论
为什么被折叠?



