I have an old Java app which has been compiled for the 32bit platform. I've moved from Windows XP (32bit) to OS X Snow Leopard (64bit) and I'd like to continue using this app, however I'm getting an exception along the lines of:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/Applications/TheApp/lib/libswt-pi-carbon-3139.jnilib: no suitable image found.
Did find:
/Applications/TheApp/lib/libswt-pi-carbon-3139.jnilib: mach-o, but wrong
architecture
I've tried using the -d32
switch when running the app from the command line but with no luck.
Is it at all possible to run this 32bit app on a 64bit platform without having to recompile or use a VM?
Edit:
I don't have the original source for this application and I'm not overly familiar with developing in Java. If there is a tool I can use to "up-compile"(?) to 64bit that would be useful!
Java Preferences
dialog shows this anyway, andjava -version
returns"Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)"
– Phillip B Oldham Jan 16 '12 at 15:29