[英]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()方法的第一行。
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
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.