【问题标题】:UnsatisfiledLinkerError while trying to create lotus notes session尝试创建 Lotus Notes 会话时出现 UnsatisfiledLinkerError
【发布时间】:2015-01-09 06:41:57
【问题描述】:

我正在尝试创建 lotus notes 会话,以发送电子邮件。在这样做的同时,我得到了:

"UnsatisfiedLinkerError : lotus.domino.local.Session.NCreateSession(I)J"

在尝试研究错误时,我了解到我需要将 nlsxbe.dll 文件添加到项目中。

如果是这样,我如何将 dll 添加到 eclipse 项目中?

如果这不是问题,请帮我解决这个错误?

谢谢

【问题讨论】:

    标签: java lotus-notes


    【解决方案1】:

    Notes.jar 添加到您的项目和构建路径中。您可以在目录...\Notes\jvm\lib\ext 中找到该文件。

    你得到了会话

    import lotus.domino.NotesFactory;
    import lotus.domino.NotesThread;
    import lotus.domino.Session;
    ...
    NotesThread.sinitThread();
    Session session = NotesFactory.createSession();
    

    【讨论】:

    • 实际上,我认为链接器错误表明它找不到 nlsxbe.dll 和/或 nnotes.dll。
    【解决方案2】:

    您的计算机上是否安装了 Lotus Notes?您不会在 Eclipse 中将其添加到您的项目中。添加 nlsxbe.dll 对你没有什么好处,因为 nlsxbe.dll 依赖于 nnotes.dll 和其他各种模块。您必须在您的机器上完整安装 Notes 和/或 Domino,并且在系统 PATH 上找到的 notes.ini 文件必须指向它。您还必须至少实际运行一次已安装的 Notes 客户端,以建立您的代码将用于其建立的连接的 id 文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-14
      • 1970-01-01
      相关资源
      最近更新 更多