Ubuntu10.10搭建Android开发环境
InstallingtheJDK
TheSunJDKisnolongerinUbuntu'smainpackagerepository.Inordertodownloadit,youneedtoaddtheappropriaterepositoryandindicatetothesystemwhichJDKshouldbeused.
Java6:forGingerbreadandnewer
$sudoadd-apt-repository"debhttp://archive.canonical.com/lucidpartner"
$sudoadd-apt-repository"deb-srchttp://archive.canonical.com/ubuntulucidpartner"
$sudoapt-getupdate
$sudoapt-getinstallsun-java6-jdk
最后设置JAVA环境
ln-s/usr/lib/jvm/java-6-sun/bin/javac/etc/alternatives/javac
ln-s/usr/lib/jvm/java-6-sun/bin/java/etc/alternatives/java
ln-s/usr/lib/jvm/java-1.5.0-sun/bin/javac/etc/alternatives/javac
ln-s/usr/lib/jvm/java-1.5.0-sun/bin/java/etc/alternatives/java
sudoln-s/usr/lib/jvm/java-1.5.0-sun/bin/javadoc/etc/alternatives/javadoc
$sudoupdate-alternatives--configjava
$sudoupdate-alternatives--configjavac
java-version
javac-version