Search code examples
macosnetbeansenvironment-variableslauncher

How do I get Netbeans 7.3.1 to see my environment variables on Mac OS X (10.8.3)?


I'd like to run Netbeans from the launcher and get it to see environment variables.

Background: I'm using netbeans for a rails project and have configured my devel database with configurations using environment variables. Unfortunately Netbeans appears unable to read those variables even when I list them in /etc/profile (for all users).

I can explicitly run Netbeans from the terminal: /Applications/NetBeans/NetBeans\ 7.3.1.app/Contents/MacOS/netbeans and that gets things to work but I'd much rather run it from the launcher if I can solve this problem.


Solution

  • You could define them in

    /etc/launchd.conf
    

    and restart system. See this for example