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


The Link is not working.
Posted by Marc Zoft on January 17, 2008 at 02:31 AM 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 11:45 AM PST #
Hi Marc, Thanks for catching it. It is now fixed.
Posted by Kishore on January 17, 2008 at 12:49 PM 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 01:50 PM 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 09: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 09:29 AM PST #