我们在笔记插件中遇到了 dll 问题。
当我们这样称呼时: NotesFactory.createSession();
我们收到此错误:
无法创建 View :nlsxbe(文件名或扩展名太长。 java.lang.UnsatisfiedLinkError: nlsxbe (文件名或扩展名太长。) 在 java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:952) 在 java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:921) 在 java.lang.System.loadLibrary(System.java:452) 在 Lotus.domino.NotesThread.load(来源未知) 在 Lotus.domino.NotesThread.checkLoaded(来源未知) 在lotus.domino.NotesThread.sinitThread(来源未知) 在 com.atempo.adam.lotus.plugin.views.TopicView.createPartControl(TopicView.java:609)
NotesFactory 位于 Notes.jar 中,我们已将其包含在依赖项选项卡的“plugin.xml”中。 (依赖项是:“com.ibm.notes.java.api”)。
jar包的路径是: “C:\Archivos 程序\IBM\Lotus\Notes\framework\rcp\eclipse\plugins\com.ibm.rcp.j2se.win32.x86_1.5.0.SR4-200707311521\jre\lib\Notes.jar” 其长度超过 128 个字符。 如果我们在“c:\program files\IBM”而不是“C:\Archivos de programa\IBM”中安装注释,则生成的路径将短于 128,并且我们不会收到错误。
我们也尝试过将 nlsxbe.dll 复制到 WIN\System32 或使用 regsvr32 命令注册 nlsxbe.dll,但出现了相同的错误。
版本有: Lotus Notes 8.0,修订版 20070803.1143 java 1.5.0
谢谢
最佳答案
尝试将 nlsxbe
路径添加到您的环境变量中。它对我有用
关于java - Lotus-notes 插件中出现 UnsatisfiedLinkError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/914803/