Adam Bien's Weblog
How To Run NetBeans 7.1 On JDK 1.7 Mac OS X Port Developer Preview
- Install NetBeans:-)
- Install JDK 1.7 Mac OS X Port Developer Preview
- Open:
/Applications/NetBeans/NetBeans\ 7.1.app/Contents/Resources/NetBeans/etc/netbeans.conf - Change
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home"
NetBeans works well so far, with minor visual glitches (e.g. anti-aliasing seems not to be implemented yet).
Posted at 07:44AM Feb 26, 2012 by Adam Bien in Real World Java EE Patterns - Rethinking Best Practices | Comments[3] | Views/Hits: 7149
NEW Workshop: "JPA, NoSQL, Caching, Grids and Distributed Caches with Java EE 7", May 7th, 2013, Airport Munich
A book about rethinking Java EE Patterns
Tweet Follow @AdamBien

It might be better to set
netbeans_jdkhome=`/usr/libexec/java_home`
so that it honors your System-wide Java Preferences. Or, while still following this recommended practice, use
netbeans_jdkhome=`/usr/libexec/java_home -v1.7`
Also, I found NB to be quite unstable with jdk 1.7. Just my 2¢.
Posted by Ted Rust on March 14, 2012 at 01:34 AM CET #
I try both of them but only this one works for me
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/JDK 1.7.0 Developer Preview.jdk/Contents/Home"
Thanks Mr. Bien!
PS: by the way ... any book on the oven?
Posted by Esteban Vargas on April 11, 2012 at 05:23 AM CEST #
How to get rid of the java menu in the menubar? Is that a bug?
Posted by Warren on March 22, 2013 at 02:32 AM CET #