How to get the userdir of your NetBeans RCP application?
By Petr Dvorak on Jul 09, 2009
Userdir is a directory where NetBeans RCP applications store settings and cache. Sometimes it can be helpful to be able to get the directory from the NetBeans RCP application itself. Most of the users initially go with something like:
String user_dir = System.getProperty("user.dir");
... and then they realize this returns a different folder from what they need. Instead, they are looking for this:
String user_dir = System.getProperty("netbeans.user");