Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT libraries on 64-bit JVM


Thanks, Martin - interesting.

Here are the relevant SWT FAQ entries:
http://www.eclipse.org/swt/faq.php#cocoa32launch
http://www.eclipse.org/swt/faq.php#cocoa64launch

Could you come up with some words (question/answer) for a new FAQ entry that describes this?
Or should we modify the words of the second entry to mention the kernel type?

Thanks,
Carolyn



From: Martin Hare Robertson <mchr3k@xxxxxxxxx>
To: "platform-swt-dev@xxxxxxxxxxx" <platform-swt-dev@xxxxxxxxxxx>
Date: 06/05/2011 12:22 PM
Subject: Re: [platform-swt-dev] SWT libraries on 64-bit JVM
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx





Hi Ahmed,

One gotcha to look out for is that you must use the SWT jar which matches your kernel and not just the CPU or JVM.

I have an OSX machine with a 64 bit processor which is running a 32 bit kernel. The JVM starts in 64 bit mode by default and I get an error regardless of whether I load a 32 bit or 64 bit OSX SWT jar. Instead I must use the JVM argument "-d32" to launch the JVM in 32 bit mode and use the 32 bit OSX SWT jar.  

Martin

> Date: Thu, 5 May 2011 16:25:58 -0400
> From: Ahmed Abdeen Hamed <ahmed.elmasri@xxxxxxxxx>
> To: "Eclipse Platform SWT component developers list."
>    <platform-swt-dev@xxxxxxxxxxx>
> Subject: [platform-swt-dev] SWT libraries on 64-bit JVM
> Message-ID: <BANLkTin6O32A03P2EVWOQVep5FzFoJpzqA@xxxxxxxxxxxxxx>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
> I am unable to find the proper release for MacOS X 64-bit.
>
> Here is the error I am getting:
> 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.internal.cocoa.NSThread.isMainThread(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 gui.HelloWorld.main(HelloWorld.java:35)
>
>
>
> Any help is appreciated,
> Ahmed
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top