【MARK】Installing the JDK5 and JDK6 for android4.0.3

Initializing a Build Environment

android官网:

http://source.android.com/source/initializing.html



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

Java 5: for Froyo and older

$ 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
$ sudo apt-get install sun-java5-jdk

切换JAVA版本

sudo update-aernatives --config java


nautilus小命令很强大啊



你可能感兴趣的:(【MARK】Installing the JDK5 and JDK6 for android4.0.3)