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

Hi Carolyn,

I suggest the following. I've surrounded my additions with **.

Martin
____

Q: Why do I get an UnsatisfiedLinkError when launching from the 32-bit Cocoa or Carbon port?
A: You need to be sure that you are forcing your launch to use a 32-bit VM. Apple ships most of their VMs with 32 and 64-bit binaries. To force the VM to run in 32-bit mode, use the -d32 option as VM argument in your launch configuration. Note that as of Snow Leopard (OS X v10.6) the default VM is 64-bit.

** Note that the 32-bit Cocoa or Carbon port will always throw an UnsatisfiedLinkError if you are running with a 64 bit OSX Kernel. For SWT to be loaded, the Kernel, JVM and SWT port must all use the same bitness. If you are running a 64 bit OSX Kernel you should use the 64-bit Cocoa port. **
Q: Why do I get an UnsatisfiedLinkError when launching from the 64-bit Cocoa port?
A: You need to be sure that you are forcing your launch to use a 64-bit VM. Apple ships most of their VMs with 32 and 64-bit binaries. To force the VM to run in 64-bit mode, use the -d64 option as VM argument in your launch configuration.

** Note that the 64-bit Cocoa port will always throw an UnsatisfiedLinkError if you are running with a 32 bit OSX Kernel. For SWT to be loaded, the Kernel, JVM and SWT port must all use the same bitness. If you are running a 32 bit OSX Kernel you should use the 32-bit Cocoa or Carbon port. **

If you are launching with SWT from CVS in your workspace (see How to use SWT from CVS, use .classpath_cocoa as the.classpath file in the org.eclipse.swt project and make sure you have the org.eclipse.swt.cocoa.maxosx.x86_64 project in your workspace), then you also need to modify the .classpath file as follows:

         attribute value="org.eclipse.swt.cocoa.macosx"
change to:
         attribute value="org.eclipse.swt.cocoa.macosx.x86_64"
 
------------------------------

Message: 3
Date: Fri, 6 May 2011 12:58:36 -0400
From: Carolyn MacLeod <Carolyn_MacLeod@xxxxxxxxxx>
To: "Eclipse Platform SWT component developers list."
       <platform-swt-dev@xxxxxxxxxxx>
Subject: Re: [platform-swt-dev] SWT libraries on 64-bit JVM
Message-ID:
       <OF2DFC06A3.DC29EF41-ON85257888.005AC2BB-85257888.005D3D4C@xxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"

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


Back to the top