PATH env variable on Mac OS X and/or Eclipse
- by Jason S
When I print out the path in bash, it prints this:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
When I run System.out.println(System.getenv("PATH")); in Java running under Eclipse, it prints
/usr/bin:/bin:/usr/sbin:/sbin
How can I figure out why there is this discrepancy? I need to add /usr/local/bin to the PATH and make it available to Java apps under Eclipse. (note: I have made no modifications system paths, so these are the defaults set by the OS or perhaps by one or more of the applications i've installed.)