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 - Detection of JDK >= 1.5 in windows launcher
Summary: Detection of JDK >= 1.5 in windows launcher
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords:
: 106142 (view as bug list)
Depends on:
Blocks: 79043 61053
  Show dependency tree
 
Reported: 2006-04-06 12:23 UTC by Antonin Nebuzelsky
Modified: 2008-12-22 11:50 UTC (History)
2 users (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 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. ***