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 74497

Summary: Detection of JDK >= 1.5 in windows launcher
Product: platform Reporter: Antonin Nebuzelsky <anebuzelsky>
Component: -- Other --Assignee: _ rkubacki <rkubacki>
Status: RESOLVED FIXED    
Severity: blocker CC: jtulach, mmirilovic
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 79043, 61053    

Description Antonin Nebuzelsky 2006-04-06 12:23:29 UTC
Windows launcher must change detection mechanism of JDK version 1.5 and newer.
The items in Registry have to be searched different way than what we do now.

This must be addressed before NB 5.5 Beta.
Comment 1 Antonin Nebuzelsky 2006-04-13 12:10:59 UTC
Not needed for 5.5 beta.
Comment 2 Antonin Nebuzelsky 2006-06-20 13:33:38 UTC
Reassigning to Radim, new owner of the launcher.
Comment 3 _ rkubacki 2006-06-21 20:49:24 UTC
not needed - won't fix. 

Why should we do this?
Comment 4 Antonin Nebuzelsky 2006-06-22 11:08:59 UTC
Not WONTFIX. Was not urgent for the Beta. We want to do something about this.
Comment 5 Antonin Nebuzelsky 2006-06-22 11:13:58 UTC
Core of the problem is that JDK installer changed the way it writes to Windows
registry. Between 1.4 and 1.5. This means, if the netbeans.conf does not specify
a certain JDK path, we look into Windows registry. The problem is that we may
choose 1.4 from the registry even if 1.5 is alredy installed.

Please, investigate, how the registry keys look like when 1.4 is installed and
when 1.5 is installed, and compare it with the behaviour we do in the laucher at
this moment.
Comment 6 _ rkubacki 2006-06-28 17:47:27 UTC
Checking in nbexec.exe;
/shared/data/ccvs/repository/core/launcher/windows/nbexec.exe,v  <--  nbexec.exe
new revision: 1.24; previous revision: 1.23
done
Checking in nbexec.cpp;
/shared/data/ccvs/repository/core/launcher/windows/nbexec.cpp,v  <--  nbexec.cpp
new revision: 1.25; previous revision: 1.24
done
Comment 7 _ rkubacki 2006-06-28 17:49:13 UTC
need to synchronize app.exe

Now it checks for default Java, if it is not found it tries 1.6 then 1.5. Part
of check is validation if the directory exists.
Comment 8 _ rkubacki 2006-06-29 12:14:05 UTC
Oops, this is platform?/lib/nbexec.exe that has no copies like app.exe.

Currently I am not going to backport this into 5.5 bacause NB5.x platform should
be compatible with J2SDK 1.4.x. The IDE will refuse to start on 1.4 later in
start sequence because of dependencies specified in enterprise cluster modules.
Comment 9 _ rkubacki 2007-06-25 15:15:28 UTC
*** Issue 106142 has been marked as a duplicate of this issue. ***