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 214096

Summary: Can't install IDE with JDK7u6
Product: installer Reporter: ttokoly
Component: Mac NativeAssignee: Jiri Rechtacek <jrechtacek>
Status: VERIFIED FIXED    
Severity: normal CC: anebuzelsky, mmirilovic, musilt2
Priority: P2    
Version: 7.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description ttokoly 2012-06-13 08:47:40 UTC
Cannot install IDE with JDK7u6 (build 13).
With JDK7u5 it works fine.
If you install NB on JDK7u5 and then install JDK 7u6, NB than runs OK.
Comment 1 Libor Fischmeistr 2012-06-14 14:33:48 UTC
There is problem in script which is searching JDK. It's looking up only /Library/Java/JavaVirtualMachines/1.7.0.jdk but not /Library/Java/JavaVirtualMachines/jdk1.7.0_06
Comment 2 Jiri Rechtacek 2012-06-19 08:29:57 UTC
(In reply to comment #1)
> There is problem in script which is searching JDK. It's looking up only
> /Library/Java/JavaVirtualMachines/1.7.0.jdk but not
> /Library/Java/JavaVirtualMachines/jdk1.7.0_06

No, isn't. There is not a problem in get_current_jdk.sh script, it works properly. The problem is the default installation path of JDK 7u6 for Mac was changed recently. A descriptor of NetBeans Mac native installer cannot find JDK 7u6 on well known place. Either we can remove checking for available JDK in the descriptor and allow install NetBeans on Mac w/o JDK, or hardcode new patch in the descriptor.
Comment 3 Jiri Rechtacek 2012-06-19 15:08:21 UTC
Waiting for response from JDK team.
Comment 4 Jiri Rechtacek 2012-06-20 08:04:47 UTC
Confirmed - jdk<major>.<minor>.<macro>[_<update>].jdk format will be used from now. It means NB Installer has to adapt this change in NB7.2.
Comment 5 Jiri Rechtacek 2012-06-20 15:38:38 UTC
http://hg.netbeans.org/core-main/rev/48e11ed48e32
Comment 6 Jiri Rechtacek 2012-06-21 09:00:37 UTC
http://hg.netbeans.org/core-main/rev/3a27f8de4ae1
Comment 7 Quality Engineering 2012-06-22 04:48:11 UTC
Integrated into 'main-golden', will be available in build *201206220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/48e11ed48e32
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #214096: Can't install IDE with JDK7u6
Comment 8 Jiri Rechtacek 2012-06-22 08:26:45 UTC
Verified on ttokoly's configuration as well as on Mac with Apple JDK. I'm going to backport it to release72 branch.
Comment 9 Jiri Rechtacek 2012-06-22 08:59:01 UTC
http://hg.netbeans.org/releases/rev/ea466976c45f
Comment 10 Quality Engineering 2012-06-24 02:38:58 UTC
Integrated into 'releases', will be available in build *201206232201* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/ea466976c45f
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #214096: Can't install IDE with JDK7u6; backport to release72
Comment 11 Tomas Danek 2012-06-28 12:21:35 UTC
verified in 7.2rc1 - installer does fair detection of JDK6 and 7 now.