缺少httpcore-X.X.X.jar包 httpclient使用时,引用的包版本需要相同(应该是),否则会各种错误。 如: httpclient-4.2.1.jar httpcore-4.2.1,jar