By Rechtacek's on Sep 11, 2008
Have you ever seen Access denied on Windows Vista while installing new plugins? It could happen on Vista in some certain cases in Plugin Manager.
Several issues have been fixed recently in NetBeans 6.5 in this area. Some of them caused by known (but very ugly behavior) problem directory.canWrite() could returns true (when directory is a java.io.File) even thought the directory is read only. As workaround I try to open java.io.InputStream to make sure if I can write them or not. Further, write permission should be checked not only on cluster directories, but also on subdirectories which can be owned by another user (namely the user Administrator if NetBeans are run in Vista admin mode sometime).
Other set of problems were caused by open file handlers in NetBeans launcher. Although there directories were hold, directory.delete() returns true as directory was
successfully deleted, but it was not true, the directory left there. Then Java cannot open this one, write into nor use it anymore, it always ends Access denied until NetBeans was running.
For your information, there are such issues:
and maybe some more recently fixed in this area.
If you want to try nightly builds on NetBeans 6.5 on http://bits.netbeans.org/dev/nightly/latest/ and please send your feedback about this upcoming NetBeans release. Thanks