I manually installed a software which is under /usr/local/bin. I want to use it in Java. But when I use System.getenv("PATH") to get $PATH. it doesn't include /usr/local/bin. How to solve this problem?
$PATH I got from terminal:
/opt/local/bin:/usr/local/maven/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin
$PATH I got in JAVA run from eclipse:
/usr/bin:/bin:/usr/sbin:/sbin
My /etc/paths is like this:
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
My ~/.bashrc is like this:
export PATH=/usr/local/maven/bin:$PATH
export PATH=/opt/local/bin:$PATH
There is no content in ~/.bash_profile.