1 查询环境变量
env
sudo env
2 修改环境变量
sudo vim /etc/profile
export PATH=$PATH:/opt/arm-eabi-4.4.3
export PATH=$PATH:/opt/arm-eabi-4.4.3/bin
sudo gedit ~/.bashrc
export PATH=$PATH:/opt/arm-eabi-4.4.3
export PATH=$PATH:/opt/arm-eabi-4.4.3/bin
export ANDROID_HOME=/home/dingchao/Downloads/android-sdk-linux
export PATH=$PATH:$ANDROID_HOME/platform-tools
export LANG=zh_CN.GB18030
export LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN
//解决ADB找不到的问题
export ANDROID_HOME=/home/dingchao/Downloads/android-sdk-linux
export PATH=$PATH:$ANDROID_HOME/platform-tools
//new
###config java env
export JAVA_HOME=/opt/jdk1.6.0_26
export JRE_HOME=/opt/jdk1.6.0_26/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export PATH=${PATH}:/opt/arm-eabi-4.4.3/bin
###config sdk
export PATH=${PATH}:/home/hoper/android-sdk-linux_86/platform-tools:/home/hoper/android-sdk-linux_86/tools
//old
JAVAHOME=/usr/lib/jvm/jdk1.6.0_24
CLASSPATH=.:/usr/lib/jvm/jdk1.6.0_24/lib
JAVA_HOME=/usr/lib/jvm/java-6-sun
JRE_HOME=${JAVA_HOME}/jre
export Android_JAVA_HOME=$JAVA_HOME
export CLASSPATH=.:${JAVA_HOME}/lib:$JRE_HOME/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export JAVA_HOME;
export JRE_HOME;
export CLASSPATH;
HOME_BIN=~/bin/
export PATH=${PATH}:${JAVA_PATH}:${HOME_BIN};
env
sudo env
2 修改环境变量
sudo vim /etc/profile
export PATH=$PATH:/opt/arm-eabi-4.4.3
export PATH=$PATH:/opt/arm-eabi-4.4.3/bin
sudo gedit ~/.bashrc
export PATH=$PATH:/opt/arm-eabi-4.4.3
export PATH=$PATH:/opt/arm-eabi-4.4.3/bin
export ANDROID_HOME=/home/dingchao/Downloads/android-sdk-linux
export PATH=$PATH:$ANDROID_HOME/platform-tools
export LANG=zh_CN.GB18030
export LANGUAGE=zh_CN.GB18030:zh_CN.GB2312:zh_CN
//解决ADB找不到的问题
export ANDROID_HOME=/home/dingchao/Downloads/android-sdk-linux
export PATH=$PATH:$ANDROID_HOME/platform-tools
//new
###config java env
export JAVA_HOME=/opt/jdk1.6.0_26
export JRE_HOME=/opt/jdk1.6.0_26/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export PATH=${PATH}:/opt/arm-eabi-4.4.3/bin
###config sdk
export PATH=${PATH}:/home/hoper/android-sdk-linux_86/platform-tools:/home/hoper/android-sdk-linux_86/tools
//old
JAVAHOME=/usr/lib/jvm/jdk1.6.0_24
CLASSPATH=.:/usr/lib/jvm/jdk1.6.0_24/lib
JAVA_HOME=/usr/lib/jvm/java-6-sun
JRE_HOME=${JAVA_HOME}/jre
export Android_JAVA_HOME=$JAVA_HOME
export CLASSPATH=.:${JAVA_HOME}/lib:$JRE_HOME/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export JAVA_HOME;
export JRE_HOME;
export CLASSPATH;
HOME_BIN=~/bin/
export PATH=${PATH}:${JAVA_PATH}:${HOME_BIN};