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: | Use system Java as platform | ||
---|---|---|---|
Product: | installer | Reporter: | fommil <fommil> |
Component: | Mac Native | Assignee: | Yulia Novozhilova <ynov> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | Macintosh (x86) | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 162518 | ||
Bug Blocks: |
Description
fommil
2009-03-07 11:53:58 UTC
The easiest way to perform this fix would be to use the following line in the conf file rather than the current 1.5 specific line netbeans_jdkhome=/System/Library/Frameworks/JavaVM.framework/Home ignore the previous suggested fix... it doesn't work, the /usr/bin/java doesn't always point to the /System/Library/Frameworks/JavaVM.framework/Home folder, you'll have to do resolution of links. Hello, Could you please clarify what problem you have? I don't see any difference between default netbeans_jdkhome and your setup. Could you also run "/usr/bin/java -fullversion" and attach the result here, please. java full version "1.6.0_07-b06-153" Note that NetBeans uses Java 1.5 by default (hard coded) on Mac, regardless of /usr/bin/java Hello, Actually installer sets "netbeans_jdkhome" correctly from some point of view:) It is not hard coded. As you know Mac native installer requires that you enter admin password to start the installation. So all scripts are run with admin privileges since NetBeans is installed for every user on this machine. The script that set up "netbeans_jdkhome" uses "/usr/bin/java -fullversion". So the java it gets is the same as you get from "sudo /usr/bin/java -fullversion". Try it. I'm sure you'll get 1.5.0* So, you can run Java Preferences under sudo and set up jdk 6.0 to be default. I agree it is incorrect behaviour but unfortunately I can't do anything in installer to fix it since I cant predict which java the user has. I'll file a bug on ide and ask them to adjust nbexec script to choose correct Java on Mac OS. Thanks. Incredible! I never would have guessed this was what was happening. When running Java Preferences as sudo, I'm seeing Java 6 as the JRE... so unable to change. User option in "Advanced" or similar would be a good workaround. hmmm... and what does "sudo /usr/bin/java -fullversion" return? java full version "1.5.0_16-b06-284" It's all very odd. reopen for reassiging. -> fixed *** Issue 164133 has been marked as a duplicate of this issue. *** |