homebrew でインストールしたコマンドは /usr/local/bin/
にインストールされるが、アプリケーションは~/.bashrc
の指定は無視され独自のPATHが設定されるので使えない。
アプリ毎にPATHを指定する方がMacOSのバージョン毎に変わっており、よくわからなかったので、Netbeans起動スクリプトを直接開きPATHを追加で動いた。
起動スクリプト(Netbeans 8.1の場合)
/Applications/NetBeans/NetBeans 8.1.app/Contents/Resources/NetBeans/bin/netbeans
...
# However, if you add GPL Version 2 code and therefore, elected the GPL
# Version 2 license, then the option applies only if the new code is
# made subject to such option by the copyright holder.
#
# /usr/local/bin/ をPATHに追加
#
export PATH=/usr/local/bin/:$PATH