FaqWhatIsUserdir

What is a userdir and where can I find it?
What is a cachedir and where can I find it?

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

The NetBeans cachedir is a directory consisting of files that may become large, may change frequently, and can be deleted and recreated at any time. For example, the results of the Java classpath scan reside in the cachedir.

NetBeans 7.2 and newer

The default location of the userdir is specific to the given system.

By default on Windows and Mac OS X the userdir is inside a directory NetBeans in application settings folder (usually at C:\Users\<username>\AppData\Roaming\ on Windows 7, and at /Users/<username>/Library/Application Support/ on Mac OS X).

On Unix-like systems the userdir is inside a (hidden) directory called .netbeans in the user's home directory. The home directory path is ${HOME}.

On Windows XP system userdir is localised to your language, so in english version it is in: c:\Documents and Settings\Your Name\Application Data\NetBeans\7.3\

As the name suggests, the userdir is unique per user. For each version of NetBeans installed, the userdir will be a unique subdirectory such as NetBeans/<nb-version>.

To find out your exact userdir location, go to the IDE's main menu, and choose Help > About. (Mac: NetBeans > About NetBeans).

The cachedir is separate from userdir and its default path is also system specific:

  • C:\Users\<username>\AppData\Local\NetBeans\Cache\7.2\ on Windows
  • /Users/<username>/Library/Caches/NetBeans/7.2/ on Mac OS X
  • /home/<username>/.cache/netbeans/7.2 on Unix-like systems

Examples

  • A Windows 7 user jdoe running NetBeans 7.2 is likely to find his userdir under
    C:\Users\jdoe\AppData\Roaming\NetBeans\7.2\ and his cachedir under
    C:\Users\jdoe\AppData\Local\NetBeans\Cache\7.2\
  • A Mac OS X user jdoe running NetBeans 7.2 is likely to find his userdir under
    /Users/jdoe/Library/Application Support/NetBeans/7.2/ (To open this folder in the Finder, choose Go > Go to Folder from the Finder menu, type /Users/jdoe/Library/Application Support/NetBeans/7.2/ into the box, and click Go.) His cachedir under
    /Users/jdoe/Library/Caches/NetBeans/7.2/
  • A Linux user jdoe running NetBeans 7.2 is likely to find his userdir under
    /home/jdoe/.netbeans/7.2/ and his cachedir under
    /home/jdoe/.cache/netbeans/7.2/


NetBeans 7.1 and older

By default the userdir is inside a (hidden) directory called .netbeans stored in the user's home directory. The home directory is ${HOME} on Unix-like systems, and %USERPROFILE% (usually set to C:\Documents and Settings\<username>) on Windows. The cachedir can be found in var/cache subfolder of the userdir.

As the name suggests, the userdir is unique per user. For each version of NetBeans installed, the userdir will be a unique subdirectory such as .netbeans/<nb-version>.

To find out your exact userdir location, go to the IDE's main menu, and choose Help > About. (Mac: NetBeans > About NetBeans).

NetBeans 7.1 allows to separate the cache directory using a switch --cachedir to a desired location.

Examples

  • A Windows user jdoe running NetBeans 5.0 is likely to find his userdir under
    C:\Documents and Settings\jdoe\.netbeans\5.0\
  • A Windows Vista user jdoe running NetBeans 5.0 is likely to find his userdir under
    C:\Users\jdoe\.netbeans\5.0\
  • A Mac OS X user jdoe running NetBeans 5.0 is likely to find his userdir under
    /Users/jdoe/.netbeans/5.0/ (To open this folder in the Finder, choose Go > Go to Folder from the Finder menu, type /Users/jdoe/.netbeans/5.0/ into the box, and click Go.)
  • A Linux user jdoe running NetBeans 5.0 is likely to find his userdir under
    /home/jdoe/.netbeans/5.0/


Links

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo