Thursday, 11 June 2009

Debrief won't start on OSX

A couple of times I've had development periods using Eclipse under OSX (instead of Windows in a VM).

Each time I've got caught out by this one. Debrief compiles ok, but won't start, citing a problem like:
Cannot load 32-bit SWT libraries on 64-bit JVM

The cause of this is that Eclipse is running Jre1.6, which is 64 bit, but it's a 32 bit SWT in Eclipse. Now, Jre1.5 was 32 bit, so we just need to select that. This is done primarily in the prefs installed JREs page, but also in the run-configuration page.

Also check that 1.5 is selected in the run configuration.

It took ages to get to the bottom of this, the final clue was examining the .log produced - it indicated we were now running 1.4. Bugger.

Then it should be ok.

No comments:

Post a Comment