Installed Mac OS X applications do not see unix environment variables defined in ~/.cshrc or any other of the standard unix configuration files. But installed NetBeans on Mac OS X may use of environment variables. To get them visible, you should define your environment variables in the file ~/.MacOSX/environment.plist. You will almost certainly have to create the directory and the file yourself. The format is as per this example:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>SCALA_HOME</key> <string>full/path/of/your/scala/home</string> <key>PATH</key> <string>/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin</string> </dict> </plist>
If you have Apple's developer tools installed then you can create and edit this file using /Developer/Applications/PropertyListEditor.app. For the official word on this file, see Apple's Technical Q&A QA1067.