码迷,mamicode.com
首页 > 其他好文 > 详细

xxx.nsf has not been opened yet解决方法

时间:2016-03-11 12:32:29      阅读:714      评论:0      收藏:0      [点我收藏+]

标签:xxx.nsf has not been opened yet

在创建session时需要写入registration 方法,这样就可以解决这个问题了。

....

Session s = NotesFactory.createSessionWithFullAccess();

Registration r= s.createRegistration();

r.switchToID(“c:\\notesIDFile.id”,“notespassword”);

 Database database = s.getDatabase(“server”, "dbname.nsf", false);

....

xxx.nsf has not been opened yet解决方法

标签:xxx.nsf has not been opened yet

原文地址:http://elisazhang.blog.51cto.com/6332349/1749808

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!