Android draw9patch.bat不能运行处理

AndroidSDK升级后,运行draw9patch.bat会出现如下错误:

Exceptionin 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:209)
at java
.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java
.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java
.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java
.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java
.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java
.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java
.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Causedby: java.lang.ClassNotFoundException: org.jdesktop.swingworker.SwingWorker
at java
.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java
.security.AccessController.doPrivileged(NativeMethod)
at java
.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun
.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java
.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java
.lang.ClassLoader.loadClass(ClassLoader.java:248)
...9 more

此时需要将 swing-worker-1.1.jar文件拷贝到android_sdk/tools/lib.目录下。 swing-worker-1.1.jar文件位于http://u.115.com/file/f295aab039中

 

你可能感兴趣的:(java,android,.net,swing,Security)