I am trying to import:
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.methods.*;
import org.apache.commons.httpclient.param.HttpMethodParams;
but netbeans states that it doesn't exist.
I have added the external JARS to the libraries folder within Projects:
apache-mime4j0.6.jar
commons-codec-1.3.jar
commons-logging-1.1.1.jar
httpclient-4.0.1.jar
httpcore-4.0.1.jar
httpmime-4.0.1.jar
But still no luck. I have also tried this in Eclipse but I get "cannot be resolved". I must be doing something fundamentally wrong, but I cannot figure it out. :-(
I tried adding a "." between httpclient and this seemed to remove the "does not exist" error:
import org.apache*.*http.client.*;
import org.apache.http*.*client.methods.*;
import org.apache.http*.*client.param.HttpMethodParams;
But when trying:
HttpClient client = new HttpClient();
For "HttpClient()" I get is abstract, cannot be instantiated.
I dont think I should have edited the imports, but I really cannot work out what on earth is going wrong :-(
Any ideas?