Resetting the Netbeans Userdir

'userdir' is the directory where NetBeans stores user configuration data such as window layouts, editor settings, menu and toolbar customizations and various module settings.

At times your IDEs userdir gets corrupted and this results in the IDE behaving weirdly like

1) In the New Project dialog, sometimes only a few of the categories are listed.
2) Your Project does not open properly, you get errors like "Project Folder Already exist" etc
3) You get an exception window on IDE startup etc.

To fix such issues, run the ide with a fresh userdir.
To do this, Delete your userdir entirely, restart NetBeans, and allow it to generate a new userdir from scratch.
This "reset" should repair the problem. For more on userdir, please refer to http://wiki.netbeans.org/wiki/view/NetBeansUserFAQ#section-NetBeansUserFAQ-Configuration

Comments:

The Link is not working.

Posted by Marc Zoft on January 16, 2008 at 06:31 PM PST #

This is the safest approach. However, if you're keen to keep any modules you've downloaded, and are only concerned about wonky window placements and the like, you can safely delete a subset of your userdir, such as <userdir>/config/Windows2Local. It's not all-or-nothing.

Posted by Rich Unger on January 17, 2008 at 03:45 AM PST #

Hi Marc, Thanks for catching it. It is now fixed.

Posted by Kishore on January 17, 2008 at 04:49 AM PST #

Also, instead of deleting the userdir, you can go to etc/netbeans.conf and change the value of the userdir key to something else. Then the something else will be the new userdir when next you start the IDE.

Posted by Geertjan on March 26, 2008 at 06:50 AM PDT #

Hi,
As I can see I can change the userdir in etc/netbeans.conf. I tried it and its works. But I like to know how can I work with some userdir at the same time.
Can I have several netbeans shortcuts on my desktop and each one will open new netbean for a different userdir?

Posted by Tamir Nitzan on November 03, 2008 at 01:57 PM PST #

Yes. It is possible to do so using the '--userdir' command line option:
http://wiki.netbeans.org/FaqMultipleIdeInstances

Posted by Karthikeyan Rajeswaran on November 04, 2008 at 01:29 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

A blog for NetBeans users maintained by NetBeans Support team. For professional support, please check out Support Resources.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today