今天重装了下ubuntu,又需要重新安装sun-java6-jdk, 结果找不到包含sun-java6-jdk的源。
http://source.android.com/source/initializing.html
google android 自己介绍了
The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used.
Java 6: for Gingerbread and newer
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
试了下结果不管用。
后来查了下,才找到,如下:
sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse"
sudo apt-get update 之后就出来sun-java6-jdk了。