Archive

Tag Archives: Java

May be it’s too late for me as a Java developer to realize this! There’s no more old JDK exist in Snow Leopard!
Well, actually it’s neither a problem for general user nor Apple. Just if you’re working on a project which is still compiled by the aging JDK1.5, that would be a concern…

It’s quite tricky that Snow Leopard set all old JDK as alias to 1.6…. That why I thought they still exist…

If you got the same problem and you found such error in your Users/x/Documents/.metadata/.log, you should download the latest Eclipse 3.5 (currently M2) build from Eclipse download site.


org.eclipse.swt.SWTException: Widget is disposed
        at org.eclipse.swt.SWT.error(SWT.java:3777)
        at org.eclipse.swt.SWT.error(SWT.java:3695)
        at org.eclipse.swt.SWT.error(SWT.java:3666)
        at org.eclipse.swt.widgets.Display.error(Display.java:1126)
        at org.eclipse.swt.widgets.Display.checkDevice(Display.java:626)
        at org.eclipse.swt.widgets.Display.update(Display.java:4084)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at win32.Main1.main(Main1.java:20)

Including myself, many Java developers are scratching their heads because of the stability issue of Eclipse after upgrading their Mac OS X to Leopard. It’s mentioned in so many Java forums and also Apple Discussion forum, but don’t know why neither Eclipse nor Apple has update about problem. Eclipse would crash and close itself if you try some of your familiar shortcut keys.

Hopefully, I searched the net and thanks to plan4041, he posted a hint how to resolve this problem. You may find the latest build of Eclipse from http://update.eclipse.org/downloads/. For me, I’m using 3.3, so I got M20080130-0800. Extract the latest build and copy these 2 files from the build to replace your local copy.

/eclipse/plugins/org.eclipse.swt_3.3.2.vXXXXX.jar
/eclipse/plugins/org.eclipse.swt.carbon.macosx_3.3.2.vXXXXX.jar

I don’t know what have been changed in the build lately and not sure if it has solved the problem totally. But what I feel is now I can use command+shift+T that I used most and it would crashed Eclipse very often before.

Honestly I’m happy with Leopard except this issue. Hope you can still continue your Java development in Leopard!

eclipse-for-leopard.png