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.
Please, correct nbexec script. Currently jdkhome is set to /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home for Mac OS X by default. -----------------nbexec------------ case "`uname`" in Darwin*) if [ -x /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java ] ; then jdkhome=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home fi ;; ... ----------------------------------- But it should check what the user default is and use that (often on Mac OS X Leopard users use jdk 6.0.* as default). It is impossible to determine from Mac native installer what java is used by the user, so nbexec must take care of that. Attached script can be used in nbexec (after "Darwin*)") for jdkhome set-up.
Created attachment 79986 [details] get_user_jdk_for_MacOSX.sh
I've prepared a patch for nbexec (attached) to fix this issue. Could you please review. If everything is ok I will push the changes into main asap.
Created attachment 80824 [details] patch for nbexec
Created attachment 80846 [details] Corrected nbexec.patch
Patch is corrected 1.5. --> 1.6.0 in line: if [ $? -eq 0 ] && [ -n "`echo \"$java_version\" | grep 1.5.0`" ] ; then --> if [ $? -eq 0 ] && [ -n "`echo \"$java_version\" | grep 1.6.0`" ] ; then
Patch seems OK, please integrate.
*** Issue 163859 has been marked as a duplicate of this issue. ***
Thanks for review. Fixed: http://hg.netbeans.org/main/rev/b0b443fbbbc0
Thanks, works for me now.