- go to /Applications/NetBeans/, click on the file Netbeans 7.3, open its context menu and select the option "Show Package Contents".
- In the package, navigate to /Contents/Resources/NetBeans/etc and edit the file netbeans.conf.
- Uncomment the variable netbeans_jdkhome and set its value like that:
netbeans_jdkhome="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home".
A possible colateral effect of this change is the exception "Unsupported major.minor version 51.0" when you compile your project targeting JavaSE 7, but the corresponding JDK is not available yet in the IDE. To fix that:
- go to the menu Tools / Java Platforms to see a dialog as shown in the figure below.
- add other JDKs you have installed. My JDK 1.7, for instance, is located at:/Library/Java/JavaVirtualMachines/jdk1.7.0_##.jdk/Contents/Home. Yours is probably somewhere there too.
ที่มา : http://www.hildeberto.com/2013/05/getting-rid-of-blurred-netbeans-in-your.html