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 Marc,

The bitness of the kernel is certainly decoupled from the bitness of the JVM. However, on my OSX machine I have a 32 bit kernel and a JVM which by default starts in 64 bit mode. If I try to use the 64 bit OSX SWT jar with the 64 bit JVM I get an UnsatisfiedLinkError. However, when I try to use the 32 bit OSX SWT jar and specify "-d32" to force the JVM to run in 32 bit mode everything works fine.

My assumption was that the 64 bit OSX SWT jar couldn't be loaded by the 64 bit JVM because I am running a 32 bit kernel. Do you think this is wrong?

MartinHR

Date: Mon, 23 May 2011 18:14:00 -0500
From: Marc Downie <marc@xxxxxxxxxxxxxxxxxx>
To: "Eclipse Platform SWT component developers list."
       <platform-swt-dev@xxxxxxxxxxx>
Subject: Re: [platform-swt-dev] SWT libraries on 64-bit JVM
Message-ID: <BANLkTi=+-2s62eVnxaB4JdGB_PyvyN6XoQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

I've missed most of the conversation, but...

> ** 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.

... I don't believe that this is true. The bitness of the kernel is
decoupled from the bitness of the JVM. You can load a 64 bit VM (and
SWT port) on a 32 bit OSX Kernel and a 32 bit VM (and SWT port) on a
64 bit Kernel. I run 64-bit VM / SWT on a 32-bit Kernel regularly.

best,

Marc.

Back to the top