The Mac@ESE makes me want to stop demo’ing

This morning at the ESE EclipseRT tutorial we are having a great set of talks on Equinox, RAP, EclipseLink and Riena. The room was full and the audience asking lots of great questions. It is great to see so many people interested in EclipseRT.

Unfortunately, there was another episode in the continuing saga of me, demos and the Mac. I was to present various things about Equinox and OSGi. The discussion went fine and short of not being able to switch Mac Spaces screens using the mouse, strange, that was great. When it came to demo however, things were not so good.

Much of the tutorial is based on Toast, an example application that comes from the new OSGi and Equinox book and is now an Example project at Eclipse. The Toast client has lots of great stuff including integration with Google Earth.  Unfortunately, for some reason that only works when running on Carbon on the Mac. OK. Since I updated to Snow Leopard I had to install some retro JREs to get Carbon. Hmm, OK.  To run the with this while running the IDE on Cocoa means I have to setup my PDE Target Platform to use Carbon explicitly.  Err, sure, why not…

Well, it seems there is a bug in PDE (well, apparently the bug is in SWT) that prevents one from editing a Target Platform to set Environment values.  Seemingly my changes were just ignored despite showing in the UI.  Not so great.  The net effect was that my demo failed.  Sigh.

To work around this I had to hand edit the .target file’s XML to add

<environment>
<ws>carbon</ws>
</environment>

Now the client works! Of course it was my fault for updating my target just before the demo and believing what the UI was telling me.  Live and learn…  I’m starting to feel a bit like Steve the Uber Geek.

It seems that there are a few other issues like this in the Target Platform editor around Software Sites.  Seems that these are issues related to Cocoa. Working on the Mac still feels like using the poor cousin of Eclipse. Oh well, there is always VMware.  But then Google Earth does not run so well there either…

3 Responses to “The Mac@ESE makes me want to stop demo’ing”

  1. Kevin Barnes says:

    You don’t need an old VM to run carbon on Snow Leopard, you just need a 32-bit VM. The launcher should pick one for you by default. For self hosting you may need the -d32 VM argument to force your VM to be 32-bit.

  2. Benjamin Muskalla says:

    Don’t worry Jeff, I think the people really enjoyed your demo :)

  3. Jeff McAffer says:

    Thanks for the pointer Kevin. I wanted “old” ones to get 1.5 etc. In any event, the fact that I am unable to set the WS in a PDE target platform definition. The key problem of this particular demo disaster is PDE bug 292068. That bug was closed as a dupe of a fixed SWT bug but the PDE target editor problem still is not fixed. That problem is new in 3.5.1. I worked around it by starting 3.5.0, editing the .target file, saving, and then going back to 3.5.1.

3 responses so far

Written by . Published in Categories: EclipseSource News, Planet Eclipse

Looking for a job?

X
Karlsruhe / Remote
JavaScript
Mobile
Karlsruhe / Victoria / Remote
Windows
Mobile
Karlsruhe / Victoria / Remote
Java
Android
Mobile