java - Cannot instantiate the type HttpClient -


I have added .jars to my library and I can also instruct other classes in jars. what gives? I have tried to clear the project etc.

This is a compiler-time error, eclipse will not let me institute it.

I'm importing the correct library, not the sun version, and using the default constructor,

  HTTP client client = new HTTP client ();   

For example "post-text" itemprop = "text">

HTTP client 4.x has an interface, for example, use DefaultHttpClient .

  HttpClient httpclient = New DefaultHttpClient ();  

Comments