.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException

Exception in thread"main" java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException

    atcom.thoughtworks.xstream.XStream.(XStream.java:333)

    atxstreamUtil.TestXStream.test(TestXStream.java:33)

    atxstreamUtil.TestXStream.main(TestXStream.java:19)

Caused by: java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserException

    atjava.net.URLClassLoader$1.run(URLClassLoader.java:200)

    atjava.security.AccessController.doPrivileged(Native Method)

    atjava.net.URLClassLoader.findClass(URLClassLoader.java:188)

    atjava.lang.ClassLoader.loadClass(ClassLoader.java:307)

    atsun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

    atjava.lang.ClassLoader.loadClass(ClassLoader.java:252)

    atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

    ...3 more


mark一下,下载xmlpull_1_0_5.jar,添加即可。


你可能感兴趣的:(Xstream)