I switched over to Netbeans on OSX from TextMate after using Netbeans a lot on my ubuntu setup. First thing I ran into was the following error when I started the application.
oci8lib.c:98:in oci8lib.bundle: OCI Library Initialization Error (OCIError)
The problem is that OSX is starting netbeans from a separate shell than from your usual terminal shell. Netbeans has a configuration file that you can add to put in your environment stuff.
Create a file called netbeans.conf in your ~/.netbeans/6.9/etc folder. You may have to create the folder first. The contents of the netbeans.conf should be the enviornment settings pulled from ~/.bash_profile. An example is below:
export ORACLE_BASE=/Users/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export DYLD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORACLE_SID=<your SID>
Mark the file executable and start netbeans again.
My Configuration:
Unibody MacBook Pro 15″, 2.66 GHz Core2Duo
Oracle 10g
Netbeans 6.9
Ruby 1.7
Rails 2.3.8