shawn@e014-anle-lnx:~$ sudo su
# chmod 777 jdk-6u27-linux-i586.bin
# ./jdk-6u27-linux-i586.bin
# mv jdk1.6.0_27 /usr/local/
# ln -s /usr/local/jdk1.6.0_27 /usr/local/jdk1.6
# exit
shawn@e014-anle-lnx:~$ sudo su
# echo "
PATH=/usr/local/jdk1.6/bin:/home/android/sdk/tools:/home/android/sdk/platform-tools:/home/android/bin:/home/android/eclipse:\$PATH:
CLASSPATH=/usr/local/jdk1.6/lib:.
JAVA_HOME=/usr/local/jdk1.6
ANDROID_JAVA_HOME=\$JAVA_HOME
GIT_SSH=ssh
export PATH CLASSPATH JAVA_HOME ANDROID_JAVA_HOME GIT_SSH
" >>/etc/bash.bashrc