Netbeans won’t work on Mac OS X since apple dropt support for Java updates
Apple, which has previously included Java with installations of Mac OS X, announced the move on its support site. It said that customers need to obtain Java directly from Oracle if they want to access web content written the widely used programming language.
And now Oracle releases Java SE Development Kit 7 (JDK 1.7u4) for Mac OS X. It is the first official Oracle release for Mac OS X. See Release Notes.
In case you type
java -version
you are going to notice that your mac still has 1.6 JVM.
Too many forums suggest to edit your java environment variables, but this is a very bad solution and maybe a temp one.
As I searched I noticed that Oracle has released a Netbeans 7.3 along with JDK 7 which would solve the problem.
Here’s the link: JDK 7u17 with NetBeans 7.3 – x64
After you install the new JDK all your previous Netbeans versions will work normally.