Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] AddressBook example did not run with Java 1.6 on Mac but did with Java 1.5 ... 32-bit vs 64-bit?

I was running Eclipse SWT examples? I have a MAC Book Pro running
Leopard. And Eclipse 3.4.1.
To get the AddressBook example to work I had to drop my MAC OS X Java
from 1.6 to 1.5.

With JVM 1.6 I got the following error,

Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load
32-bit SWT libraries on 64-bit JVM
	at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
	at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
	at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
	at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
	at org.eclipse.swt.widgets.Display.create(Unknown Source)
	at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
	at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
	at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
	at org.eclipse.swt.examples.addressbook.AddressBook.main(AddressBook.java:55)


I find this very strange. I have
eclipse-SDK-3.4.1-macosx-carbon.tar.gz  ... so I have the right
Eclipse. I have swt-3.4-carbon-macosx.zip, which is the right SWT. I
get the examples from
eclipse-examples-3.4.1.zip. And I have the MAC OS X JVM 1.6.

I did a file->Import->Existing Projects into Workspace and chose the
archive swt-3.4-carbon-macosx.zip.

The example works as expected when I chose Java 1.5.

-- 
 -Ted


Back to the top