android2.3的java环境搭建(jdk-6.0)

.android2.3的java环境搭建(jdk-6.0)
下载jdk-6u25-linux-i586.bin(下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html)
cp jdk-6u25-linux-i586.bin /home/nation/
cd /home/nation/
./jdk-6u25-linux-i586.bin
设置变量
export JAVA_HOME=/home/nation/jdk1.6.0_25
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib

在ubuntu中可输入以下命令进行安装:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk

你可能感兴趣的:(java,android,ubuntu,Path,Deb)