android2.3 draw9patch NoClassDefFoundError 解决方法

 

C:\Users\Dell>draw9patch

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdesk

top/swingworker/SwingWorker

        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.SwingWorke

r

        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)

        ... 9 more




升级到2.3后发现draw9patch没法用了,报异常,解决方法放出,帮小白们解忧:
把附件的文件放到 path_to_android_sdk/tools/lib下即可。

 

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