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

来源:互联网 发布:手机ping命令测试网络 编辑:程序博客网 时间:2024/06/05 06:29

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小命令很强大啊



原创粉丝点击