============问题描述============
刚刚研究cling可是发现做的demo中,运行失败,一直不解原因,一直报错这个是错误的信息
08-11 09:49:49.194: E/dalvikvm(19398): Could not find class ‘org.fourthline.cling.transport.impl.AsyncServletStreamServerImpl$1‘, referenced from method org.fourthline.cling.transport.impl.AsyncServletStreamServerImpl.createServlet
08-11 09:49:49.194: E/dalvikvm(19398): Could not find class ‘org.eclipse.jetty.server.Request‘, referenced from method org.fourthline.cling.transport.impl.jetty.JettyServletContainer.isConnectionOpen
08-11 09:49:49.194: E/dalvikvm(19398): Could not find class ‘org.eclipse.jetty.server.bio.SocketConnector‘, referenced from method org.fourthline.cling.transport.impl.jetty.JettyServletContainer.addConnector
08-11 09:49:49.204: E/dalvikvm(19398): Could not find class ‘org.eclipse.jetty.server.Server‘, referenced from method org.fourthline.cling.transport.impl.jetty.JettyServletContainer.resetServer
如上就是几个错误信息,我已经添加了jetty的jar包但是还是不行,而且也已经引用了,原因未解,困惑中
我试过了网上关于一些此类问题的解决方法,但是都未能解决,
1clear project
2build path
3use as source folder
4libs
5order and export
这些都试过了,在引入cling的jar时的确没问题了,但是cling本来就是引入的第三方jar包,然后在使用的时候报这个错误,在添加jetty的jar包后,这些歌方法就都不管用了,不知为什么,求教!
============解决方案1============
试试直接把jar放libs目录下