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.
Summary: | virgin Mac install of Java and Netbeans leads to deadend | ||
---|---|---|---|
Product: | platform | Reporter: | polyglotinc |
Component: | Launchers&CLI | Assignee: | Yulia Novozhilova <ynov> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | anebuzelsky |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | nbexec_mac.patch |
Description
polyglotinc
2010-10-06 01:36:26 UTC
Hi,
Do you use Intel-based Mac or PowerPC?
Please attach /var/log/install.log file.
Could you also please run the following command and attach the output here?
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/unpack200 --help
I found a solution WHICH SHOULD BE ADDED TO THE INSTALLATION INSTRUCTIONS. Apparently when the Java SDK is downloaded to a Mac, it is not always made the new default JRE. There is a GUI application on the Mac called "Java Preferences" (often found in the Utilities subfolder in the Applications folder). Using this app, one can change the Java 6 JRE/SDK to be the default one, and then NetBeans will run. Downgrading to P3 since a workaround exists. It is a launcher's problem, currently it tries to set users default java for jdkhome. It should use Java 1.6 in case if user's default is 1.5 I'm going to fix it in trunk. Created attachment 102300 [details]
nbexec_mac.patch
Antonin, please review the patch attached. If you are agree, I'll commit the changes.
The idea is that NetBeans runs on Java 6 now, so no need to check users defaults anymore.
Yulia, the patch looks OK to me. Just one comment. I don't know what is the exact file layout of JDK installations on MacOSX, and here we are checking for folders "1.6" and "1.6.0". On other platforms individual JDK 6 updates are in indifferent folders. But I guess on Mac it is simpler, right? Reassigning back to you for the integration. |