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 157784 - .nbi is created in the wrong place
Summary: .nbi is created in the wrong place
Status: RESOLVED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@installer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-02 15:08 UTC by fmr59
Modified: 2009-02-02 20:19 UTC (History)
0 users

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 fmr59 2009-02-02 15:08:30 UTC
I cannot install netbeans since it is trying to write a file in a location that he thinks is my home directory but
actually is a network folder where I do not have the permission to write (\\Ubz01\Profs\User\fricci\.nbi).
The point is that I do not understand where the installer is finding this value. In netbeans 6.01 this directory was
created in C:\Documents and Settings\fricci and everything worked.
I have similar problems also with the Java Micro Edition platform sdk 3.0.
Any solution?
thanks
Francesco
Comment 1 dlipin 2009-02-02 20:19:06 UTC
The home directory is taken from the Java`s "user.home" system property.
I don`t remember correctly how and where JDK is taken from, but if I am not mistaken, Java uses (for the user home 
directory) the parent folder of the directory that is set the registry value named "Desktop" under key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
or
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
Probably it depends on JDK version...

BTW, what is the value of %USERPROFILE% ?
You might want to find \\Ubz01\Profs\User\fricci in the registry, it can give the clue of how the JDK determines the 
user home directory. Unfortunately NB Installer does not contol it much...