=============== Problem description ====================
After studying cling, I found that the running failed in the demo, but I still don't understand the cause. I always reported an error. This is an error message.
09:49:49 08-11. 194: E/dalvikvm (19398): cocould not find class 'org. fourthline. cling. transport. impl. asyncservletstreamserverimpl $1 ', referenced from method Org. fourthline. cling. transport. impl. asyncservletstreamserverimpl. createservlet
09:49:49 08-11. 194: E/dalvikvm (19398): cocould not find class 'org. eclipse. jetty. server. request ', referenced from method Org. fourthline. cling. transport. impl. jetty. jettyservletcontainer. isconnectionopen
09:49:49 08-11. 194: E/dalvikvm (19398): cocould not find class 'org. eclipse. jetty. server. bio. socketconnector ', referenced from method Org. fourthline. cling. transport. impl. jetty. jettyservletcontainer. addconnector
09:49:49 08-11. 204: E/dalvikvm (19398): cocould not find class 'org. eclipse. jetty. server. server ', referenced from method Org. fourthline. cling. transport. impl. jetty. jettyservletcontainer. resetserver
The above is a few error messages. I have added the jetty jar package, but it still does not work, and it has been referenced. The reason is unknown and it is confusing.
I tried some online solutions to these problems, but none of them solved them,
1 clear project
2 build path
3use as source folder
4 libs
5 order and export
These are all tried. It is true that it is okay to introduce cling jar, but cling is a third-party jar package and then reports this error during use, after adding the jetty jar package, these methods are useless. I don't know why. Please advise!
============= Solution 1 ======================
Try to put the jar in the libs directory.
Cling cannot find the class for developing dlna!