Quote http://platform.netbeans.org/articles/installation.html
You canβt share this directory between different Products - the cache is useless, the logs will get confused, and custom configuration modifications can be ambiguous. This is why each Product must define its own directory prefix (based on its name) and pass it to the general nbexec command (for example, using the --defaultuserdir parameter). The user can override the default value when invoking the product launcher (for example, nbweb --userdir myuserdir).
View the documentation that I have indicated. If this does not help, you can use links, i.e. create a cache directory where necessary, and then create a link in the netbeans directory structure (described on the page) that points to the prepared cache.
source share