17
8
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.)
Note for future Googlers: Apple now includes
– Telemachus – 2018-12-01T15:47:25.403/usr/local/bin
first in users'$PATH
. (See here.)2+1 for your final question. I'm wondering how to diagnose path issues in OS X not in bash or the Terminal. – fideli – 2010-01-21T00:19:51.833