mac下eclipse获取环境变量问题

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

你可能感兴趣的:(mac下eclipse获取环境变量问题)