HttpClient NoClassDefFoundError

前端 未结 4 1985
没有蜡笔的小新
没有蜡笔的小新 2020-12-17 16:12

I am trying to run a sample application from HttpClient 4.0.1. It is the file ClientMultiThreadedExecution.java from the examples section. I put in these files in the clas

4条回答
  •  囚心锁ツ
    2020-12-17 16:49

    Running Eclipse Luna 2 (4.4.2) inside cloudera-quickstart-vm-5.8.0 I had to add the following

    • apache-httpcomponents-httpcore.jar
    • httpclient-4.5.3.jar
    • httpclient-cache-4.5.3.jar

    ... and then it worked without errors

提交回复
热议问题