Mac OSX 10.6 - SWT Designer not detecting 32 bit JVM

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Mac OSX 10.6 - SWT Designer not detecting 32 bit JVM

Postby riz1ali » Fri Dec 18, 2009 3:19 pm

Hello,

I am running Mac OSX Snow Leopard and I have set Java 1.6 32 bit as the default JVM via the Java Preferences utility.

I have installed Eclipse 3.5 (32 bit Cocoa) and SWT Designer 7.2.

I created an empty Shell project via SWT Designer but when I run it, I get the following error:

Cannot load 32-bit SWT libraries on 64-bit JVM.

I went to the run configurations page and added -d32 as a vm option and now everything is working fine.

I am wondering if it is a bug because Eclipse detects the default 32 bit jvm and so does all other java apps like FrostWire.

Its just a pain to add -d32 to all my new projects. And maybe I am becoming lazy too. LOL.

Thanks a billion!
riz1ali
 
Posts: 4
Joined: Thu Dec 06, 2007 1:55 pm

Re: Mac OSX 10.6 - SWT Designer not detecting 32 bit JVM

Postby Eric Clayberg » Sat Dec 19, 2009 6:03 pm

No idea. That sounds like a good question for the Eclipse SWT newsgroup.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Mac OSX 10.6 - SWT Designer not detecting 32 bit JVM

Postby riz1ali » Mon Dec 21, 2009 4:22 pm

So far, it looks like adding "-d32" is the only way of telling the JVM to load 32 bit SWT even when launching from within Eclipse. Otherwise, it defaults to 64 bit.

The SWT site regarding deployment on MAC OS X states more information about the -d32 switch:

http://www.eclipse.org/swt/macosx/

Here are some more articles:

http://www.eclipse.org/forums/index.php ... 1ed4deada8
http://www.eclipse.org/forums/index.php ... &th=153746
http://www.eclipse.org/forums/index.php ... &th=153755

Hope it helps anyone with this issue.
riz1ali
 
Posts: 4
Joined: Thu Dec 06, 2007 1:55 pm

Re: Mac OSX 10.6 - SWT Designer not detecting 32 bit JVM

Postby Eric Clayberg » Mon Dec 21, 2009 6:02 pm

Thanks for the added info.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot] and 2 guests