Arduino 1.5.1 won't work on a Mac

Title says it all, when launched there is an error box saying:-

Uncaught exception in main method:
java.lang.illegalStateException: Menu has no enabled items

Googling arround shows some related Linux problems and talks of a missing platform.txt file. I have found two of these and both seem OK.

Anyone got an answer to this?

Haven't tried 1.5+ on my MBP yet. I'll try it later, when I'm on the machine. Which version of the OS are you running?

Which version of the OS are you running?

10.6.8

Arduino 1.5.0 runs fine

Just downloaded 1.5.1r2 on my 10.7.5 machine, and it ran ok. Uploaded some sketches to an Uno, but I don't have a Due. In case it makes a difference, java -version reports:

java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)

I had similar issues. Apparently a "hardware" folder in your sketches folder (may be) the reason for this.

Thanks Nick, that appears to have done it. The hardware folder contained a attiny45_85 folder. I just moved it out of the sketches folder and now it will run.
Any ( publishable ) suggestions of what to do with the folder?

I'm kind of hoping they will fix the problem in the next release.

Meanwhile I'm using the 1.0.x releases.

Well to be fair, the 1.5.x branch isn't actually "released" yet.