Jump to content

HTTPCLIENT in Java - "does not exist" when importing


busillis

Recommended Posts

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. :-(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.