Java – cannot instantiate type httpclient

I've taken it Jars is added to my library, and I can instantiate other classes in jars What gives? I tried to clean up the project, etc

This is a compiler time error Eclipse won't let me instantiate it

I am importing the correct library instead of the sun version and using the default reference specified by its tutorial

(eclipse, MAC, Apache HTTP, "httpclient 4.0.1 (GA)", downloaded from here)

Solution

Httpclient is 4 X, and use defaulthttpclient for the instance@ H_ 403_ 6@HttpClient httpclient = new DefaultHttpClient();

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>