mac下eclipse获取环境变量问题

2016-12-16  本文已影响0人  空_7788

Mac OSX, the environment variables defined in .bashrc or .bash_profile are only exported to terminal environments.

A bundled GUI app like Eclipse does not see them,


解决方案

1.命令行启动GUI

open /Application/Eclipse.app

2.修改/etc/launchd.conf

setenv MAVEN_HOME ~/maven

上一篇下一篇

猜你喜欢

热点阅读