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.

Bug 163839 - Wrong default Java Platform on OSX
Summary: Wrong default Java Platform on OSX
Status: RESOLVED WORKSFORME
Alias: None
Product: installer
Classification: Unclassified
Component: Mac Native (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-28 08:00 UTC by sflemming
Modified: 2010-02-09 22:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sflemming 2009-04-28 08:00:36 UTC
Although the Java Default Platform selected in OSX Java Configuration Tool is Java 1.6, 
NetBeans always selects Java 1.5 as its default Platform when installing a new version.

java -version using the terminal returns:
---
Java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)
---

NetBeans seems to use the wrong way to select the correct platform.

Maybe it tries to figure out the default VM by checking the symlinks in /System/Library/Frameworks/JavaVM.framework/Versions?
If this is the case it would be fatal because changing these symlinks to a newer JVM results in a crash. I checked this with the latest OSX Installation.

Either Apple changed the way for saving the current configuration and the symlink is deprecated and now only for internal usage or it is a OSX Bug.

There are two Netcat 67 Threads about this topic: 

[67cat] [other] Wrong default Java Platform on Mac OSX?
[67cat][core] Segmentation fault and SystemUIServer crash in  netbeans executable on OS X
Comment 1 Tomas Zezula 2010-02-09 10:38:48 UTC
Not related to the Java platform manager (default platform). The default platform is a platform the IDE was started on. If you want to change it you can edit the JDK used to run the IDE in ${netbeans.home}/etc/netbeans.conf.
>NetBeans always selects Java 1.5 as its default Platform when installing a new version.
Seems to related to NB installer.
Comment 2 sflemming 2010-02-09 13:52:02 UTC
I did no not have this problem anymore.

This could be because:

- It has been fixed in Snow Leopard
- It has been fixed with the new Java Version or
- It has has been fixed in the new NetBeans 6.8.

I would recommend to close the bug since it now works for me.
Comment 3 Alexei Mokeev 2010-02-09 22:09:52 UTC
Thanks for confirming. Closing as WFM.