You can use:
File udir = new File(System.getProperty("netbeans.user"));
or you can use:
FileObject root = Repository.getDefault().getDefaultFileSystem().getRoot();
File udir = FileUtil.toFile(root).getParentFile();
//notice get parent called on the File instance instead
//of the root FileObject as ...
- 23:46
- 浏览 (116)
- 评论 (0)
The core snippet is here:
public class Installer extends ModuleInstall {
public void restored() {
modifyAutoupdateSettings();
}
private void modifyAutoupdateSettings () {
Settings autoupdateSettings =
(Settings)SharedClassObject.findObject(Settings.class);
...
1、adding a META-INF/services for java.util.logging.Handler
2、#-org.netbeans.core.NbErrorManager
my.company.MyErrorHandler







评论排行榜