Getting started with UNO and Java with Open / LibreOffice

I just started developing a Java project using the LibreOffice 4.0.1 UNO SDK, aaaand ... I was almost stuck at the very beginning. I think the same can apply if I used OpenOffice.org instead of LibreOffice, so any help would be appreciated.

I am using Eclipse Juno 4.2 and I created the project "Hello World". I added a directory /programto the class path (added as an external class folder), and right at the beginning of this line of code

XComponentContext ctx = Bootstrap.bootstrap();

throws an exception UnsatisfiedLinkErrorwith the following stack trace:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no jpipe in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.sun.star.lib.util.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:50)
    at com.sun.star.lib.connections.pipe.PipeConnection.<clinit>(PipeConnection.java:48)
    at com.sun.star.lib.connections.pipe.pipeConnector.connect(pipeConnector.java:110)
    at com.sun.star.comp.connections.Connector.connect(Connector.java:114)
    at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:108)
    at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:301)
    at xx.test.unotest.UnoTest.main(UnoTest.java:16)

It even try/catchsurrounds the instruction, but it does not start.

I can’t find decent documentation about getting started with UNO, so I don’t know what went wrong. The SDK is installed and environment variables are configured.

Did I miss something?

. 64- Windows 7. , - .

+5
2

, , jpipe.dll , PATH. LibreOffice 4.0/URE/bin .

java.library.path .

, SDK, GNU make, , MinGW zip-, , info-zip.org(, api.libreoffice.org) , .

, 64- , jpipe.dll - 32- , 32- JDK/JRE, .

. , .

.

+6

32- libreoffice, 32, jdk . libreoffice 64-

+2

All Articles