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 109897 - [Vista] Nightly build 200707160000 can't be installed on Windows Vista
Summary: [Vista] Nightly build 200707160000 can't be installed on Windows Vista
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P1 blocker (vote)
Assignee: Kirill Sorokin
URL:
Keywords:
: 110017 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-16 19:57 UTC by _ hong_lin
Modified: 2007-08-01 06:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot of the Installer Error (33.05 KB, application/octet-stream)
2007-07-16 19:58 UTC, _ hong_lin
Details
specify JDK (54.51 KB, image/png)
2007-07-18 16:43 UTC, _ alexlamsl
Details
out.log file (10.38 KB, text/plain)
2007-07-25 19:19 UTC, _ hong_lin
Details
netbeans-6.0-nightly-200707250000-basic-windows.exe -verbose -output out.log (14.01 KB, text/plain)
2007-07-25 19:55 UTC, _ alexlamsl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ hong_lin 2007-07-16 19:57:00 UTC
Build: NB 6.0 nightly build 200707160000
Platform: Windows Vista
JDK: jdk 1.6.0_01

Note: The installer works fine on Windows XP with the same version of jdk.

Steps to reproduce it:
1. started the installer as administrator.
2. Got "Java SE Development Kit (JDK) was not found on this computer" error. And I was forced to Exit Installer.
   (See screenshot JDKNotFound.png.)
3. Tried an earlier version of installer (build 200707091200), it worked fine.


3.
Comment 1 _ hong_lin 2007-07-16 19:58:56 UTC
Created attachment 45162 [details]
Screen shot of the Installer Error
Comment 2 Kirill Sorokin 2007-07-18 09:04:17 UTC
*** Issue 110017 has been marked as a duplicate of this issue. ***
Comment 3 dlipin 2007-07-18 11:15:09 UTC
Hong, please run installer in verbose mode 
(installer.exe --verbose --output out.log) and 
attach resulting out.log file.
Comment 4 dlipin 2007-07-18 11:27:47 UTC
Hong, does "--javahome <path-to-jgk>" installer 
switch work for you?
Comment 5 _ alexlamsl 2007-07-18 16:28:05 UTC
"--javahome" does not work at all, on JDK / JRE / JDK's JRE

In addition, the same behaviour can be reproduced all the way back to 200707130000 (where I gave up trying, for now 
anyway)
Comment 6 _ alexlamsl 2007-07-18 16:42:20 UTC
Just tested 200707120000 - and it works!

Well, halfly - it couldn't find the JDK automagically.
Comment 7 _ alexlamsl 2007-07-18 16:43:37 UTC
Created attachment 45333 [details]
specify JDK
Comment 8 _ alexlamsl 2007-07-23 19:18:38 UTC
For the record, a user reported success with 200707221200 on his copy of Vista.

I have failed to reproduce it on my laptop for both 200707221200 and 200707230000.
Comment 9 dlipin 2007-07-23 20:14:23 UTC
Alexlamsl, I can say that we have not changed 
anything in the launcher since 07/13. OT. Kirill, I 
am still in hospital at least till Wednesday, so 
can't answer emails (but can read unfiltered inbox)
. Commemting issues is the benefit of Opera Mini..
Comment 10 dlipin 2007-07-23 20:28:21 UTC
the issue is most probably not gone. I'll check the 
code in some time, there could be some memory 
managememt errors that are not 100% reproducible.
Comment 11 Kirill Sorokin 2007-07-23 20:57:04 UTC
As reported by Hong, the issue is still 100% reproducible on her machine, so it's definitely not gone. I'll take an
additional look at it this afternoon.
Comment 12 dlipin 2007-07-23 21:13:46 UTC
Kir, I am not sure that I have last time compiled 
launcher using VC not gcc. If it was VC then size 
of nlw.exe should be about 116K.
Comment 13 _ alexlamsl 2007-07-23 21:13:48 UTC
Could it be the case that launcher will run fine if ".nbi" folder is left behind by previous installations?
Comment 14 dlipin 2007-07-23 21:19:50 UTC
alexlamsl, 100% it is not the case.
Comment 15 _ hong_lin 2007-07-23 22:10:32 UTC
I can still reproduce the issue with installer 200707230000 on my laptop.

BTW, here is the workaround provided by Kirill:

1. To install
run the installer with --extract <directory> -- this will extract the
pure java installer to the specified directory. You can then run it
directory via java -jar. 

2. To uninstall
Manually remove the installation. Iinstruction can be found here:
http://www.netbeans.org/community/releases/60/install.html#troubleshooting, please look at the "To clean up the system"
section.
Comment 16 dlipin 2007-07-25 06:33:56 UTC
Since workarounds exist then lowering the priority.
Comment 17 _ hong_lin 2007-07-25 06:53:15 UTC
Dima,

It is not a very convenient workaround, I do not agree to lower the priority. It should
be considered as a Beta1 stopper and should be fixed as early as possible. 
Comment 18 Kirill Sorokin 2007-07-25 07:35:54 UTC
I agree with Hong here. Moreover since Beta1 was slipped by 3 weeks, we do have time to fix it. I will be looking @ the
issue, but I can't guarantee anything since I'm a complete sucker in native stuff.
Comment 19 dlipin 2007-07-25 07:45:59 UTC
Hong, I agree with you that it is a stopper but I 
do think that it is P2 (Issue 109645 is more 
appropriate candidate for P1). Does --javahome 
switch works for you? Due to the comment of 
alexlamsl, it should work. isn't it a convinient 
workoround?
Comment 20 dlipin 2007-07-25 08:01:51 UTC
ok, let it be high priority if you both insist :)
Comment 21 Kirill Sorokin 2007-07-25 08:17:05 UTC
The problem is that the issue's reproducibility is a bit sporadic. On Hong's machine nothing helps except extracting the
installer and running it directly via java. At the same time all works without any problems on other users' machines.
Comment 22 _ hong_lin 2007-07-25 08:19:14 UTC
No. Adding "--javahome" switch doesn't work. 

comments from alexlamsl said: "--javahome" does not work at all, on JDK / JRE / JDK's JRE
Comment 23 dlipin 2007-07-25 08:53:04 UTC
my fault ...
Comment 24 dlipin 2007-07-25 13:37:05 UTC
Hong, alexlamsl,
could you please run installer in verbose mode (installer.exe --verbose --output out.log) and attach resulting out.log 
file.

Thanks,
Dmitry
Comment 25 _ hong_lin 2007-07-25 19:18:15 UTC
I tried another Windows Vista machine (a desktop) with nightly build 200707250000, got the same problem:

"netbeans-6.0-nightly-200707250000-full-win... has stopped working
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is
available."

The out.log file will be attached.

JDK version: build 1.6.0-b105, mixed mode.
It is installed at:  C:\Java\jdk1.6.0
JRE is installed at: C:\Java\jre1.6.0
Comment 26 _ hong_lin 2007-07-25 19:19:21 UTC
Created attachment 45701 [details]
out.log file
Comment 27 _ alexlamsl 2007-07-25 19:35:37 UTC
That workaround is less than satisfactory - esp if the "--javahome" switch doesn't work at all.

hong_lin: some installers I've tested crashed on my laptop as well - I didn't include them in this report since I 
couldn't reliably reproduce the crashes even with the same setup program.
Comment 28 _ alexlamsl 2007-07-25 19:47:36 UTC
HI!

I am using Vista Ultimate and I have installed JDK 6.0u2 in D:\jdk6.0.


Thomas

Alex Lam S.L. wrote:

> 200707221200 doesn't work either on here.
>
> I'm using Vista Ultimate on a Centrino Duo laptop - how about you?
>
> Alex.
>
> P.S. the issue is tracked here:
> http://www.netbeans.org/issues/show_bug.cgi?id=109897
>
>
> On 7/23/07, *Alex Lam S.L.* <alexlamsl@gmail.com

> <mailto:alexlamsl@gmail.com>> wrote:
>
>     Just downloaded
>     "netbeans-6.0-nightly-200707230000-basic-windows.exe" and it doesn't
>     work - same dialog appeared.
>
>     Alex.
>
>

>     On 7/23/07, *Thomas Börkel* <tbo@ap-ag.com <mailto:tbo@ap-ag.com>>

>     wrote:
>
>         HI!
>
>         Build 200707221200 installs fine on Vista here.
>
>         Thomas

dlipin: I'll give "installer.exe --verbose --output out.log" a go. Give me 1 sec ;-)
Comment 29 _ alexlamsl 2007-07-25 19:53:53 UTC
I think I can see the problem...

"...\java.exe" -classpath C:\Users\User\AppData\Local\Temp\\NBI57634.tmp\TestJDK.class??? TestJDK
Comment 30 _ alexlamsl 2007-07-25 19:55:02 UTC
Created attachment 45705 [details]
netbeans-6.0-nightly-200707250000-basic-windows.exe -verbose -output out.log
Comment 31 dlipin 2007-07-30 09:45:16 UTC
The issue should be fixed in the next nightly build (>=200707300000).
Comment 32 _ alexlamsl 2007-07-31 19:06:46 UTC
verified with 200707310000 on Vista Ultimate
Comment 33 _ hong_lin 2007-08-01 06:00:24 UTC
The latest installer worked on my system too. I used build 200707311200.