1,在终端中输入命令:sudo gedit /etc/profile
2,在profile文件的最下边加入下面的内容:
JAVA_HOME=/home/jdk1.6.0_25(JDK安装路径)
PATH=$PATH:/home/oasis/jdk1.6.0_25/bin:/home/Develops/android-sdk_linux-x86/platform-tools(adb路径)
CLASSPATH=.:/home/oasis/jdk1.6.0_25/jre
export JAVA_HOME PATH CLASSPATH
umask 022