我正在尝试实现现有的 XML 解析器:kXML。
我遇到了以下错误:
java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException 在 com.sun.midp.midlet.MIDletState.createMIDlet(+29) 在 com.sun.midp.midlet.Scheduler.schedule(+52) 在 com.sun.midp.main.Main.runLocalClass(+28) 在 com.sun.midp.main.Main.main(+80) 执行完成。
在此站点上,您可以找到我遇到的错误。然而,该解决方案不起作用。我使用了以下脚本:
C:\WTK2.5.2_01\bin\preverify -classpath .;C:\java_libraries\wirelesstoolkit\midpapi20.jar org.kxml2.io.KXmlParser C:\WTK2.5.2_01\bin\preverify -classpath .;C:\java_libraries\wirelesstoolkit\midpapi20.jar org.kxml2.io.KXmlSerializer C:\WTK2.5.2_01\bin\preverify -classpath .;C:\java_libraries\wirelesstoolkit\midpapi20.jar org.xmlpull.v1.XmlPullParser C:\WTK2.5.2_01\bin\preverify -classpath .;C:\java_libraries\wirelesstoolkit\midpapi20.jar org.xmlpull.v1.XmlPullParserException C:\WTK2.5.2_01\bin\preverify -classpath .;C:\java_libraries\wirelesstoolkit\midpapi20.jar org.xmlpull.v1.XmlPullParserFactory C:\WTK2.5.2_01\bin\preverify -classpath .;C:\java_libraries\wirelesstoolkit\midpapi20.jar org.xmlpull.v1.XmlSerializer 光盘输出 C:\Program Files\Java\jdk1.6.0_14\bin\jar -cvf ..\kxml2.jar org
我收到以下错误(其中多个):
C:\Users\****\Desktop\kxmlfolder>C:\WTK2.5.2_01\bin\preverify -classpath .;C:\ java_libraries\wirelesstoolkit\midpapi20.jar org.kxml2.io.KXmlParser 预验证类 org.xmlpull.v1.XmlPullParser 时出错 java/lang/NoClassDefFoundError: java/lang/Object C:\Users\****\Desktop\kxmlfolder>C:\WTK2.5.2_01\bin\preverify -classpath .;C:\ java_libraries\wirelesstoolkit\midpapi20.jar org.kxml2.io.KXmlSerializer 预验证类 org.xmlpull.v1.XmlSerializer 时出错 java/lang/NoClassDefFoundError: java/lang/Object
可能是什么原因?