วันอังคารที่ 10 กันยายน พ.ศ. 2556

การปรับค่า NetBeans สำหรับ Macbook Retina

To proceed:
  1. go to /Applications/NetBeans/, click on the file Netbeans 7.3, open its context menu and select the option "Show Package Contents".
  2. In the package, navigate to /Contents/Resources/NetBeans/etc and edit the file netbeans.conf.
  3. Uncomment the variable netbeans_jdkhome and set its value like that:
    netbeans_jdkhome="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home".
That's it! It will change the default JDK used by Netbeans. Start it again to see the result.

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:
  1. go to the menu Tools / Java Platforms to see a dialog as shown in the figure below.
  2. 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