This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently default JDK is determined for the root user since the installer is running under it and not for the user who really ran the installer. See also 166753. To get default JDK for the current user the following can be taken into account. The current user $HOME environment variable is not changed. If the user changes the default JDK, then the plist file is created at ~/Library/Preferences/ByHost/com.apple.java.JavaPreferences.*.plist. where * is some sequence of chars/digits (e.g. 000a958f6df6). By default, this file is in binary form. To convert it to XML, do $ cp ~/Library/Preferences/ByHost/com.apple.java.JavaPreferences.000a958f6df6.plist /tmp/ $ plutil -convert xml1 /tmp/com.apple.java.JavaPreferences.000a958f6df6.plist The example of this plist file (converted) is attached. The preferred JKD order should be read from Applications section not from Applets.
Created attachment 83384 [details] Example of plist file with Java settings
Created attachment 83385 [details] plist with more user-friendly mime type
Assigned to new owner.
Since NetBeans 7.3 the default Java is used - http://wiki.netbeans.org/Recommended7u10