(SOLVED) Arduino IDE 1.5.3 not launching on MacOS X

Hi everybody...

I just downloaded IDE 1.5.3 and it won't launch.
This happens both under MacOS 10.7.5 (Lion) and 10.6

Previous version 1.5.2 still runs just fine.
Tried also the nightly build, still no joy.

Here's the console message:

[JavaAppLauncher Error] CallStaticVoidMethod() threw an exception
Exception in thread "main" 
java.lang.NoClassDefFoundError: javax/swing/filechooser/FileNameExtensionFilter
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at apple.launcher.LaunchRunner.loadMainMethod(LaunchRunner.java:56)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:112)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
([0x0-0x70070].cc.arduino.Arduino[1395]) Exited with code: 1

Any suggestion?

Alessandro

I somehow managed to solve the problem.

I stumbled upon this post: There must be some Java gurus around... help please! Also, stickies? [rant] - #6 by kelvin31415 - Website and Forum - Arduino Forum

Apparently somewhere in my system there still is a 1.5 JVM and that's what the app is getting.

Had to edit Arduino.app/Contents/Info.plist and replace:

<key>JVMVersion</key>
<string>1.5*</string>

with

<key>JVMVersion</key>
<string>1.6*</string>

This ensures the IDE runs with 1.6, and this apparently fixed the problem.

Hope this can help anybody experiencing similar problems.

Alessandro