for each project, i able to set environment when i select \"run it as\" . can i set global environment that all project will inherit when run?
You can set environment variables in a script that starts Eclipse. These should be inherited by all child processes.
[EDIT] Create a small script which contains this:
export JAVA_HOME=....
....path-to-eclipse.../eclipse.exe
Not sure about the ".exe" on Mac. Just put the absolute path of the eclipse executable in the line below the export
and it should work. To make the script executable, use chmod +x scriptname