UnsatisfiledLinkerError while trying to create lotus notes session

好久不见. 提交于 2019-12-11 06:57:09

问题


I was trying to create lotus notes session, to send email out. While doing so I am getting :

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

While trying research on the error, I understood I need to add nlsxbe.dll file to the project.

If that is so, how do I add a dll to eclipse project?

If that is not the issue, please help me out to resolve this error?

Thank you


回答1:


Add Notes.jar to your project and build path. You can find the file in directory ...\Notes\jvm\lib\ext.

You get the session with

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



回答2:


Do you have Lotus Notes installed on your computer? You don't add it to your project in eclipse. Adding nlsxbe.dll would do you very little good, because nlsxbe.dll depends on nnotes.dll and various other modules. You must have a full installation of Notes and/or Domino on your machine, and the notes.ini file that is found on the system PATH must point to it. You will also have to actually run the installed Notes client at least once in order to establish the id file that your code will use for the connections that it makes.



来源:https://stackoverflow.com/questions/27849176/unsatisfiledlinkererror-while-trying-to-create-lotus-notes-session

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!