0

使用 Libre Office API 并在 java.lang.UnsatisfiedLinkError 上弹跳:

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.

有谁知道如何处理这个?似乎无法在互联网上找到一个好的解决方案/

4

1 回答 1

1

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

于 2012-05-05T15:44:17.597 回答