2010年12月21日 星期二

Install sun jdk on ubuntu 10.10


Android requires JDK5.0 to build the source code (at the time of writing).
(When build Android, the java and javac version is checked by */build/core/main.mk)
So, you need to: download and install the JDK5.0 from Sun's (Oracle's) website, or, use the old repositories:

1a. For Java 5, Add Jaunty to repositories
$ sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ jaunty multiverse"

1b. For Java 6, Add Jaunty to repositories
$ sudo add-apt-repository ppa:sun-java-community-team/sun-java6
2. Update source list  
$ sudo apt-get update
3. Install 
$ sudo apt-get install sun-java6-jdk (or sun-java5-jdk)

沒有留言:

張貼留言