You need to download the dependent jar file and add to your classpath.

Search and download swingworker jar. This should have been documented, since
this is a new thing that came up with the new ADT tools.

Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com



On Tue, Jan 4, 2011 at 1:15 PM, 陈彧堃 <[email protected]> wrote:

> Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
> org/jdesktop/swingworker/SwingWorker
>     at com.android.draw9patch.Application$1.run(Application.java:48)
>     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
>     at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
>     at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
>     at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
>     at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
>     at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
>     at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
>     at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
> Caused by: java.lang.ClassNotFoundException:
> org.jdesktop.swingworker.SwingWorker
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>     ... 9 more
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to