1 reply [Last post]
btanner
Offline
Joined: 2010-04-13

Hey guys. Looks like a cool product. Trying hard to get a stupid simple example working and then plan on working up from there.

Running Snow Leopard 10.6.2. Just installed Open Office 3.2.0 to default location.

Now I made a very simple program with 1 statement in the main method:
SystemManager.initialise();

And I get mean looking errors:
SEVERE: Problem loading library:/var/folders/6Z/6ZKzQlGuGgirBnuA+zcEzk+++TI/-Tmp-/docmosis/libs/lib_127076628149091000_0/libuno_sal.dylib.3
java.lang.UnsatisfiedLinkError: /private/var/folders/6Z/6ZKzQlGuGgirBnuA+zcEzk+++TI/-Tmp-/docmosis/libs/lib_127076628149091000_0/libuno_sal.dylib.3: no suitable image found. Did find: /private/var/folders/6Z/6ZKzQlGuGgirBnuA+zcEzk+++TI/-Tmp-/docmosis/libs/lib_127076628149091000_0/libuno_sal.dylib.3: mach-o, but wrong architecture

Seems like the file probably needs to be recompiled for 64-bit? This Snow Leopard 64/32-bit situation has me a bit confused. I thought it was just all supposed to work by magic.

Further Googling says to call Java with runtime argument: -d32

This will run it in 32-bit mode. Fixed.

I originally came to ask the question but found the answer on my own before posting. So this maybe can help others.

modman
Offline
Joined: 2010-11-25
64 bit vs 32 bit

Thanks BT for posting even though you have found the answer.

This problems is because you have a 64 bit Java trying to talk to code natively compiled as 32 bit (OpenOffice). The options are
a) use a 32 bit Java - this would how it would normally "work by magic"
b) tell 64 bit Java to use 32 bits (eg. "-d32") - not all compilers have this
c) use a matching compilation of OpenOffice - not all platforms have a 64 bit download on the openoffice site

We're about to do another release and we'll make it easier to run under the default OSX configuration.