PDA

View Full Version : Eclipse Not Picking Up Environment Settings


Partial
2008-08-26, 23:29
All,

I have eclipse, flex builder 3 plugin, jboss and ant installed at the root/applications of my system.

I have my bashrc and environment variables set at the "home" level.

I cannot get Eclipse to pick-up any of my settings other than my ANT_HOME, which is set in eclipse.

Anyone else have any experience with these problems?

Partial
2008-08-29, 19:13
for those interested in knowing, you need to put that them in the environment.plist file. I was unaware OS X broke bash.

colivigan
2008-08-29, 19:27
for those interested in knowing, you need to put that them in the environment.plist file. I was unaware OS X broke bash.
Do you start Eclipse from the command line? If not, then there is nothing broken.

When you set an environment variable in *nix systems, it takes effect for the current process and any subsequent child processes. The .bashrc file is only invoked for a bash shell, i.e. when you start up a Terminal session. Anything started from the Terminal will inherit those environment settings.

But this has nothing to do with applications started from the Finder. These are launched directly - no bash shell involved.