Issue 110543

Summary: No connection to OOo from Java on Mac OSX 10.6.2
Product: porting Reporter: wolfgangg <w.goldbach>
Component: MacOSXAssignee: ericb
Status: CLOSED FIXED QA Contact: issues@porting <issues>
Severity: Trivial    
Priority: P5 (lowest) CC: issues, jsc
Version: OOo 3.2   
Target Milestone: ---   
Hardware: Mac   
OS: Mac OS X 10.6   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description wolfgangg 2010-04-01 10:58:18 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
Comment 1 jsc 2010-04-01 13:15:00 UTC
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.
Comment 2 jsc 2010-04-01 13:15:26 UTC
cc jsc
Comment 3 wolfgangg 2010-04-01 13:52:01 UTC
Thanks for this quick solution.

Wolfgang