简体   繁体   English

java.lang.UnsatisfiedLinkError:lsxbe(在java.library.path中找不到)

[英]java.lang.UnsatisfiedLinkError: lsxbe (Not found in java.library.path)

I try to use Lotus Notes API in java but i receive the error in object. 我尝试在Java中使用Lotus Notes API,但收到对象错误。 This is the code: 这是代码:

import lotus.domino.*;

public class HelloTest extends NotesThread {
    public static void main(String argv[]){
        HelloTest t = new HelloTest();
        t.start();
    }
    public void runNotes() {
       try{
           Session s = NotesFactory.createSession();
           // To bypass Readers fields restrictions
           Session s = NotesFactory.createSessionWithFullAccess();
           String p = s.getPlatform();
           System.out.println("Platform = " + p);
       }
       catch (Exception e){
           e.printStackTrace();
       }
    }
}

Anyone can help me? 有人可以帮助我吗?

This error typically shows that the API you are using requires a native library, that has to be loaded by the runtime. 此错误通常表明您使用的API需要本地库,该库必须由运行时加载。 The native libraries are distributed together with the API jar. 本机库与API jar一起分发。 Is there anything like this mentioned in the Lotus notes documentation? Lotus Notes文档中是否提到了类似的内容?

Native libraries are loaded with a single method call: http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#loadLibrary(java.lang.String) 本机库通过单个方法调用加载: http : //docs.oracle.com/javase/7/docs/api/java/lang/System.html#loadLibrary(java.lang.String)

This call should made before any calls to the API. 该调用应在对API进行任何调用之前进行。 I suggest you can put it as the first line of your main() method. 我建议您可以将其作为main()方法的第一行。

  1. You have to add the paths to notes' installation folder eg C:\\Program Files (x86)\\IBM\\Notes and notes' user data folder eg C:\\Lotus\\Notes\\Data to your environment variable PATH 您必须将注释的安装文件夹(例如C:\\Program Files (x86)\\IBM\\Notes和注释的用户数据文件夹,例如C:\\Lotus\\Notes\\Data PATH到环境变量PATH
  2. Use a x32-JRE (For compatibility with the Notes DLLs) 使用x32-JRE(与Notes DLL兼容)
  3. Call lotus.notes.NotesThread.sinitThread(); 调用lotus.notes.NotesThread.sinitThread(); before Session s = NotesFactory.createSession(); Session s = NotesFactory.createSession();之前Session s = NotesFactory.createSession();

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.UnsatisfiedLinkError:cqjnilinuxproxy(在java.library.path中找不到) - java.lang.UnsatisfiedLinkError: cqjnilinuxproxy (Not found in java.library.path) IBM 笔记 | Mac OS High Siera | 线程“Thread-0”中的异常 java.lang.UnsatisfiedLinkError: java.library.path 中没有 lsxbe - IBM Notes | Mac OS High Siera | Exception in thread “Thread-0” java.lang.UnsatisfiedLinkError: no lsxbe in java.library.path java.lang.UnsatisfiedLinkError:否 <LIBRARY> 在java.library.path中 - java.lang.UnsatisfiedLinkError: no <LIBRARY> in java.library.path java.lang.UnsatisfiedLinkError:java.library.path中没有frmjapi - java.lang.UnsatisfiedLinkError: no frmjapi in java.library.path java.lang.UnsatisfiedLinkError: java.library.path 中没有 jhdf5 - java.lang.UnsatisfiedLinkError: no jhdf5 in java.library.path java.lang.UnsatisfiedLinkError:java.library.path中没有jcryptoki - java.lang.UnsatisfiedLinkError: no jcryptoki in java.library.path java.lang.UnsatisfiedLinkError:java.library.path中没有JMagick - java.lang.UnsatisfiedLinkError: no JMagick in java.library.path LWJGL&#39;java.lang.UnsatisfiedLinkError&#39;:java.library.path中没有lwjgl - LWJGL 'java.lang.UnsatisfiedLinkError': no lwjgl in java.library.path java.lang.UnsatisfiedLinkError:java.library.path 中没有 rxtxSerial - java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path java.lang.UnsatisfiedLinkError:java.library.path中没有usbJava - java.lang.UnsatisfiedLinkError: no usbJava in java.library.path
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM