• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Can't Use draw9patch.bat

RocknSteve

Member
I'm trying to use draw9patch.bat but it won't work. It keeps giving me this error

C:\...\android-sdk-windows\tools>draw9patch.bat
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdesktop/swingworker/Swin
gWorker
at com.android.draw9patch.Application$1.run(Application.java:48)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jdesktop.swingworker.SwingWorker
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 9 more
If I'm correct, that means I'm missing something Java wise. If you have any insight, it would be much appreciated!
 
Hey, i had the same issue. It's because it can't find the swingworker jar file. Download it or locate it on your computer (i believe it's called swing-worker-1.1.jar) and put it in the sdk/tools/lib folder
 
Hey, i had the same issue. It's because it can't find the swingworker jar file. Download it or locate it on your computer (i believe it's called swing-worker-1.1.jar) and put it in the sdk/tools/lib folder
Thanks very much! I'll try that when I have time and let you know how it goes.
 
Hey, i had the same issue. It's because it can't find the swingworker jar file. Download it or locate it on your computer (i believe it's called swing-worker-1.1.jar) and put it in the sdk/tools/lib folder


I had the same problem. I just tried that and it worked.

I couldn't find the file on my computer for some reason, if you can't find it get it here

Download swing-worker-1.1.jar : swing worker 1.1.jarSTUVWXYZJar File Download

and just extract it into your tools/lib and it should work, mine did. Thanks!
 
Back
Top Bottom