How do I get kXML to work?

别说谁变了你拦得住时间么 提交于 2019-12-06 07:21:06

You problem is that you managed to configure your development environment to compile your MIDlet against the kXML libraries but your didn't include them into your MIDlet jar file so the J2ME emulator doesn't know how to find the classes your MIDlet imports at runtime.

Maybe you should include the kXml library. if you use eclipse MTJ, just right click on the project name, select properties, select Java Build Path in the list, in the right click select libraries, add external jar button, browse and select the kXml.jar file. You will see the new library now included. Try run the project again.

hari Prasad

You need to link kxml-source in buildpath settings. I had a very hard time for 3 days to figure out this.

In eclipse just right click on the project name, select properties, select Java Build Path , go to ORDER & EXPORT and click on the external kXml jar file to be included alongwith the jar file of your project . This should work .

Ivan Lappo-Danilevski

I hope my finding is somehow related: going through the XStream tutorial http://x-stream.github.io/tutorial.html I got the same error message. I found out that I had to include kxml2-[version].jar (given in the bundle) and not the kxml2-min-[version].jar, as stated in the tutorial. So following what QuickRecipesOnSymbian said, I think including the correct jar is crucial.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!