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 221351 - [73cat] permanent or easy config of userdir/cachedir
Summary: [73cat] permanent or easy config of userdir/cachedir
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal with 6 votes (vote)
Assignee: Libor Fischmeistr
Depends on:
Reported: 2012-11-02 13:43 UTC by muellermi
Modified: 2015-01-15 07:40 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2012-11-02 13:43:25 UTC
Product Version = NetBeans IDE Dev (Build 201211020001)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_09
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.5-b02

Problem (applies to Windows OS):
To keep a user's profile small (and thus to reduce boot time if it is a server side profile), NB's userdir and cachedir have to be placed outside the user's profile (%userprofile%).
a) persists this information, to re-use it after a new version is installed 
b) query this information durig install

a) this information might be stored in %userprofile%/etc/netbeans.conf

currently this is not supported
    The default location and name of the userdir . Note that this entry is only valid in the global configuration file. (It cannot be redefined in the local netbeans.conf file, because the launcher already needs to know the location of the userdir when the local netbeans.conf file is being processed.) " []

solution: since %userprofile% is different to userdir and only depends on the user who is logged in, it must be possible to read this file just after the global conf file. Individual setting override global settings.

b) simply query it in installation wizzard.
Apply two text fields for userdir and cachedir and populate current values as default. Let the user choose different locations (similar to choose JDK)
If this will be to much information query, then replace JDK selection by a button "customize". If th user pressed this button, a new dialog opens to select JDK, userdir, cachedir

I prefer to implement a) and b). If only one can be implemented, I prefer a) over b)
Comment 1 matthias42 2015-01-15 07:05:04 UTC
Is this still an issue? I checked on my windows installation @work. The structure looks sane:

I use netbeans 8 and got:
- Cache-Dir is c:\Users\<user>\AppData\Local\NetBeans\Cache\8.0
- Config-Dir is C:\Users\<user>\AppData\Roaming\NetBeans\8.0

While the cache is _big_, the config is for me 40MB.

According to this looks ok, as only the 40 MB are part of the roaming profile and are moved when changing PCs.
Comment 2 muellermi 2015-01-15 07:40:59 UTC
Yes, it still is a big issue, thus I set it to P2 just now.
Although the user dir is the smaller one, NetBeans often is the no 1 candidate to make login and logoff at a windows system slow.
And, people dividing their hard disk (especia if it is al smaller SSDs) into two drives (c: -> system, d: -> data) will run out of space after a year of frequent windwos updates.

_I_ knwow how to use other folders and point to them by using command line parameters. But, it is an annoying job to chang this every time, espeical if you frequently download nightly builds.
And, most people don't know how to change it, nor do they know, that there is such an option. And without the later knowledge, they wont search a faq.
Thus, I still recommend to offer an option during installation.