mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
来源:互联网 发布:阿里数据平台 编辑:程序博客网 时间:2024/05/19 19:30
顺便说下: mac 下java SDK 的路径。(比如在使用jertbrains 开发android 程序的时候,开始就要配置JSDK路径)
如果要在MAC系统下开发CODE。可以先装个IDE(NETBEANS/Eclipse等),而后不需要装JDK和JVM了,MAC下已经帮你下载好,安装完成,配置好路径。当然如果要升级JDK,那当然要自己下载安装了。
在MAC系统中,jdk的安装路径与windows不同,默认目录是:/System/Libray/Frameworks/JavaVM.Framwork/。
在这个目录下有个Versions目录,里面有不同版本的jdk。
http://blog.csdn.net/hsyj_0001/article/details/5403939#
结果还是在英文网站上找到解决方法。
1. 启动终端Terminal
2. 进入当前用户的home目录
输入cd ~
3. 创建.bash_profile
输入touch .bash_profile
4. 编辑.bash_profile文件
输入open -e .bash_profile
因为是为了搭建Android开发环境,输入Android SDK下的tools目录:export PATH=${PATH}:/eclipse/android_sdk/tools
5. 保存文件,关闭.bash_profile
6. 更新刚配置的环境变量
输入source .bash_profile
7. 验证配置是否成功
输入android启动Android SDK and AVD Manager
8:操作截图如下:
备注: 随着android 的升级 android 和 adb 命令 被放在了 不同的目录。。。 这个时候就需要配置多个路径了如下:
修改 .project_profile 文件内容为
export PATH=${PATH}:/wf/programfiles/android/tools $
export PATH=${PATH}:/wf/programfiles/android/platform-tools
转载:http://blog.csdn.net/greenbird811/article/details/7543305
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- mac关于.bash_profile环境变量配置的问题
- Mac 配置环境变量 .bash_profile
- mac关于java .bash_profile环境变量配置的问题
- MAC 上的.bash_profile文件
- Linux的环境变量.bash_profile .bashrc profile文件
- Mac pro使用的那些坑(四)java环境变量配置
- 我的mac OSX bash_profile文件
- 当爱不存在的时候我们不要挽留
- mac .bash_profile环境变量汇总
- 使 .bash_profile 文件中环境变量马上生效的命令
- 使 .bash_profile 文件中环境变量马上生效的命令
- 使 .bash_profile 文件中环境变量马上生效的命令
- 在QT中,当BOM头不存在的时候,判断一个文件是否为UTF-8编码格式
- struts中Action的线程安全性分析
- 学习
- ocp 043 1-50
- 消除压力的小技巧
- AdapterView及其子类之一:基本原理(ListView、ListActivity类型)
- mac pro 环境变量的配置 (当不存在 .bash_profile 文件的时候)
- mapreduce shuffle 讲的很详细
- 使用JQuery结合HIghcharts实现从后台获取JSON实时刷新图表
- 如何删除MySql服务
- Android 利用cursor来进行排序
- All inAll
- Microsoft Excel 的使用新技巧
- C++ 文件流小结
- highcharts 内存泄露的解决