Hi Everyone,
I have an Java applet that loads native code through JNI. Everything worked just fine until I made the upgrade to Snow Leopard, and then Safari decided to be dumb. It turns out Safari will only load 64 bit binaries when in 64 bit mode. (You can put it in 32 bit mode, but that is not an option.) I changed my build system (g++) to support building a universal binary instead of a single 32 bit binary. I have successfully created a universal binary, but when I try and load it into my applet, I get an unsatisfied link exception saying that there is not a suitable image found and it cannot map it. Has anyone dealt with this before?
For extra info...
When I typed in 'file native.dylib' in Terminal, the original 32 binary came out as:
Mach-O dynamically linked shared library i386
And when I did the same for the universal binary, it came out as:
native.dylib: Mach-O universal binary with 2 architectures
native.dylib (for architecture i386): Mach-O object i386
native.dylib (for architecture x86_64
): Mach-O 64-bit object x86_64