PATH env variable on Mac OS X and/or Eclipse

Posted by Jason S on Super User See other posts from Super User or by Jason S
Published on 2009-08-23T19:21:07Z Indexed on 2013/10/18 10:02 UTC
Read the original article Hit count: 199

Filed under:
|

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.)

© Super User or respective owner

Related posts about osx

Related posts about path