I'm trying to implement an existing XML parser: kXML.
I ran into the following error:
java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException at com.sun.midp.midlet.MIDletState.createMIDlet(+29) at com.sun.midp.midlet.Scheduler.schedule(+52) at com.sun.midp.main.Main.runLocalClass(+28) at com.sun.midp.main.Main.main(+80) Execution completed.
At this site you can find the error that I ran in to. The solution however doesn't work. I used the following script:
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 cd output C:\Program Files\Java\jdk1.6.0_14\bin\jar -cvf ..\kxml2.jar org
I get the following errors (mutliple of these):
C:\Users\****\Desktop\kxmlfolder>C:\WTK2.5.2_01\bin\preverify -classpath .;C:\ java_libraries\wirelesstoolkit\midpapi20.jar org.kxml2.io.KXmlParser Error preverifying class 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 Error preverifying class org.xmlpull.v1.XmlSerializer java/lang/NoClassDefFoundError: java/lang/Object
What can be the cause?