ubuntu常用环境变量设置

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};


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值