我正在尝试使用 Java 程序在本地控制我的 Lotus Notes 以自动为我发送电子邮件。我在尝试获取数据库对象时遇到了以下问题。
try {
NotesThread.sinitThread();
Session s = NotesFactory.createSession();
Database db = s.getDatabase("", "mail/xxxx.nsf")
} finally {
NotesThread.stermThread();
}
我得到以下异常:
NotesException: Database open failed (%1)
at lotus.domino.local.Database.Nopen(Native Method)
at lotus.domino.local.Database.open(Unknown Source)
我已将我的 nsf 文件和 Notes.jar 复制到我的类路径中,有人知道这是什么问题吗?