Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » loading SWT on MacOS10.6
loading SWT on MacOS10.6 [message #528641] Wed, 21 April 2010 07:03 Go to next message
Eclipse UserFriend
Hello,
We're porting our RCP app to run on MacOSX10.6. Because our app uses some native libraries and java bindings which are only available in 32bit, we need to run our RCP app using 32bit Java. It's based on Eclipse Galileo 3.5.2 cocoa.
So , in the launch configuration wizard, I add -d32 to the JVM options.
At the moment I'm just trying to get the app running in the IDE. However I've reached an impasse with the SWT fragments. There are two available:

1 ) org.eclipse.swt.cocoa.macosx and
2) org.eclipse.swt.cocoa.macosx_x86_64


If I select fragment 1) and then 'validate plugins' I get an error that this fragment is not valid for the architecture (it only supports x86 or ppc) and the app does not start.

If I select fragment 2) and click 'validate plugins' then there are no errors but again the app does not load because "can't load 64bit fragment into 32bit jre".

Clearly there is a solution for this (Eclipse itself starts fine if you add -d32 to JVM options in its config.ini on 10.6) but I'm darned if I can find it. How can I convince Eclipse that because I'm using the 32bit JRE that the org.eclipse.swt.cocoa.macosx fragment is OK?

Many thanks for any advice,
Best wishes
Richard
Re: loading SWT on MacOS10.6 [message #528647 is a reply to message #528641] Wed, 21 April 2010 07:13 Go to previous messageGo to next message
Eclipse UserFriend
Am 21.04.10 13:03, schrieb Richard Adams:
> Hello,
> We're porting our RCP app to run on MacOSX10.6. Because our app uses
> some native libraries and java bindings which are only available in
> 32bit, we need to run our RCP app using 32bit Java. It's based on
> Eclipse Galileo 3.5.2 cocoa.
> So , in the launch configuration wizard, I add -d32 to the JVM options.
> At the moment I'm just trying to get the app running in the IDE. However
> I've reached an impasse with the SWT fragments. There are two available:
>
> 1 ) org.eclipse.swt.cocoa.macosx and
> 2) org.eclipse.swt.cocoa.macosx_x86_64
>
>
> If I select fragment 1) and then 'validate plugins' I get an error that
> this fragment is not valid for the architecture (it only supports x86 or
> ppc) and the app does not start.

What's the error message when launching? The most likely problem is that
the arch passed with ${target.arch} is x86_64 and now equinox filters
out the macosx bundle.

Solution:
a) Q&D: Launch with
-os ${target.os} -ws ${target.ws} -arch x86 ....
b) Reconfigure your target-platforms environment variables
(I had problems last time i did it because PDE somehow cached the
value)

Tom
Re: loading SWT on MacOS10.6 [message #528663 is a reply to message #528647] Wed, 21 April 2010 08:19 Go to previous message
Eclipse UserFriend
Thank you!! Thank you!!
Yes, Qand D worked just fine - just changing

-os ${target.os} -ws ${target.ws} -arch ${target.arch}-nl ${target.nl}

to

-os ${target.os} -ws ${target.ws} -arch x86 -nl ${target.nl}

did the trick. Still get the 'Platform filters did not match' warning but the app loads OK.
Target needs to be X platform so will leave solution b) for now.

Thanks again,

Richard
Previous Topic:Multilanguage Preferences -> Help page
Next Topic:Standalone RCP application needs to 'add' arbitrary 3rd-party JDBC driver jars to classpath
Goto Forum:
  


Current Time: Sat Jun 21 17:36:02 EDT 2025

Powered by FUDForum. Page generated in 0.08409 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top