Apache OpenOffice (AOO) Bugzilla – Issue 110543
No connection to OOo from Java on Mac OSX 10.6.2
Last modified: 2017-05-20 09:13:56 UTC
When I build a new project in NetBeans that contains already the line XComponentContext xContext = Bootstrap.bootstrap(); and execute the project in the debugger then the program jumps to the end of the current function without doing anything or throwing any exception or message. At this time the following message occurs in the system console: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java[73984] dlopen(/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libjpipe.jnilib, 1): no suitable image found. Did find: /Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libjpipe.jnilib: mach-o, but wrong architecture My real project that shows the same problem works on Linux. Could this problem be related to Issue 108457 ? There should be a developer snapshot of OOo 3.2.1 (OOO320_m14), but the installer is not on the download page. I have also tried the snapshot OOo-Dev_DEV300_m75, but the problem is the same. Wolfgang
it's the 64bit problem. You run a 64bit Java and the bootstrap mechanism tries to find a 64 bit jpipe library which does not exist. As long as this problem isn't solved you should run your Java application with the JVM option -d32. In NetBeans for example you can simply specify it in the project properties.
cc jsc
Thanks for this quick solution. Wolfgang