Java 未满足链接错误

Java 未满足链接错误,java,libreoffice,unsatisfiedlinkerror,Java,Libreoffice,Unsatisfiedlinkerror,使用Libre Office API并在java.lang.UnsatifiedLinkError上跳转: Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I at com.sun.star.lib.connections.pipe.PipeConnection.c

使用Libre Office API并在java.lang.UnsatifiedLinkError上跳转:

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I
    at com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Native Method)
    at com.sun.star.lib.connections.pipe.PipeConnection.<init>(PipeConnection.java:125)
    at com.sun.star.lib.connections.pipe.pipeConnector.connect(pipeConnector.java:134)
    at com.sun.star.comp.connections.Connector.connect(Connector.java:138)
    at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:120)
    at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:292)
    at HelloTextTableShape.getRemoteServiceManager(HelloTextTableShape.java:446)
    at HelloTextTableShape.newDocComponent(HelloTextTableShape.java:433)
    at HelloTextTableShape.useWriter(HelloTextTableShape.java:115)
    at HelloTextTableShape.useDocuments(HelloTextTableShape.java:107)
    at HelloTextTableShape.main(HelloTextTableShape.java:98)
CE> Warning: -nologo is deprecated.  Use --nologo instead.
CE> Warning: -nodefault is deprecated.  Use --nodefault instead.
CE> Warning: -norestore is deprecated.  Use --norestore instead.
CE> Warning: -nolockcheck is deprecated.  Use --nolockcheck instead.
CE> Warning: -accept=pipe,name=uno7528184211562854035;urp; is deprecated.  Use --accept=pipe,name=uno7528184211562854035;urp; instead.
线程“main”java.lang.UnsatisfiedLinkError中出现异常:com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I 位于com.sun.star.lib.connections.pipe.PipeConnection.createJNI(本机方法) 位于com.sun.star.lib.connections.pipe.PipeConnection.(PipeConnection.java:125) 位于com.sun.star.lib.connections.pipe.pipeConnector.connect(pipeConnector.java:134) 位于com.sun.star.comp.connections.Connector.connect(Connector.java:138) 在com.sun.star.comp.urlsolver.urlsolver$\u urlsolver.resolve(urlsolver.java:120)上 位于com.sun.star.comp.helper.Bootstrap.Bootstrap(Bootstrap.java:292) 在HelloTextTableShape.getRemoteServiceManager(HelloTextTableShape.java:446) 在HelloTextTableShape.newDocComponent(HelloTextTableShape.java:433) 在HelloTextTableShape.useWriter(HelloTextTableShape.java:115) 在HelloTextTableShape.useDocuments(HelloTextTableShape.java:107) 在HelloTextTableShape.main(HelloTextTableShape.java:98) CE>警告:-不推荐使用nologo。改用--nologo。 CE>警告:-不推荐使用nodefault。改用--nodefault。 CE>警告:-不推荐使用norestore。改用--norestore。 CE>警告:-不推荐使用nolockcheck。改用--nolockcheck。 CE>警告:-接受=管道,名称=UNO75281842115628854035;urp;不推荐使用。Use--accept=pipe,name=uno75281842115628854035;urp;相反
有人知道怎么处理吗?在internet上似乎找不到好的解决方案/

您缺少一个设置-Djava.library.path或(如果不是在WIndows上)LD_library_path,指向com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I的JNI库。

您能否解释一下如何正确修复此问题,因为我对OO了解不够,无法告诉您正确的路径名。LD_LIBRARY_PATH=/usr/lib/libreoffice/urn link/lib./start-the-app.sh允许Linux上的本机库。您必须知道,32位Java不能与64位OpenOffice一起使用,64位Java不能与32位OpenOffice一起使用。过去几天我花了很大一部分时间来学习这一点。此外,在windows上使用“-Djava.library.path=C:/Program Files/LibreOffice 3.5”的解决方案也可以工作!