Monday, January 24, 2011

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdesktop/swingworker/SwingWorker

Cannot open the stupid draw9patch.bat in your Android tools folder?

Just before you become as cynical as me and think that Android (or Google) hates all developers (well THEY DO. Android used to let unappreciative users download paid apps for 1 whole day before returning! Now it is 15 min. Noch  crap. It's only USD1 to USD5 per app, and yet after all that effort, you see assholes returning your app BECAUSE THEY CAN!!), see solution from  Marco Massenzio(God bless this magnificent man)

(1) Download latest from here.
(2) Unzip and dump the swinglabs.jar into "[your Android SDK folder]\tools\lib" folder.
(3) Double click on the draw9patch.bat folder in your "[your Android SDK folder]\tools" folder.

Voila! It works!

Then you can continue to torture yourself on using 9patch (this is from Google, duh). Use this friendlier tutorial here. I on the other hand, cannot be bothered, as I am in a dreadful rush to deliver what I owe to the nice guys at Ubinuri, whose patience I have terribly abused =P

Btw be careful with the 9 patch. You might end up with a resource.ap error, which happened to me. This is how to resolve the problem, though you will have to delete the 9.png. Yes, me the poor sod. After all that effort.

1 comment:

  1. Thanks for the blessings and my pleasure to be of help =)

    BTW I actually think that the 'satisfied or refund' policy is *very* helpful for developers, as it encourages users to try out paid stuff, and they know they'll get a refund if they don't like it.

    As a developer myself, I would actually be *very* unhappy if it were otherwise, as not having a refund would stop most people to try out stuff from unknowns (like myself... no Microserf here LoL)

    But, yup, that last release of the SDK was a bit of a fiasco (you may have seen my other post re breaking for all the Ubuntu Karmic folks....)

    Thanks for cross-posting, cheers



Related Posts with Thumbnails