分类: LINUX
2011-11-07 15:20:18
To compile android, we need to switch from java6 to java5 and here are the steps.
1. Add the following line to /etc/apt/sources.list
deb dapper main multiverse
2. Install java5
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk
$ sudo update-java-alternatives -l
java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun
java-6-sun 63 /usr/lib/jvm/java-6-sun
3. Switch to java5
$ sudo update-java-alternatives -s java-1.5.0-sun
come from: