Ohh ok thanks. Are there any other libraries I need to have those are new for 3.0?



Kedar


Oleg Kalnichevski wrote:

Kedar,
HttpClient 3.0 requires Commons Codec 1.2 as a runtime dependency

http://jakarta.apache.org/commons/codec/

Oleg

On Sun, 2004-06-06 at 23:38, Kedar Panse wrote:


I am trying to use HTTPClient 3.0 alpha.... getting DecoderException

OS: XP Home
Processor: P4  (Intel)
JDK: 1.5.0 beta1






import org.apache.commons.httpclient.*; import org.apache.commons.logging.*; import org.apache.commons.httpclient.methods.*;

public class HTTPCtest{
public static void main(String[] argv){
try{
HttpClient client = new HttpClient();
HttpMethod method = new GetMethod("http://www.google.com/";);
int statusCode = client.executeMethod(method);
System.out.println(method.getResponseBodyAsString());
method.releaseConnection();
}catch(Exception e){
e.printStackTrace();
}
}
}




java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:202)
at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:88)
at HTTPCtest.main(HTTPCtest.java:11)
Exception in thread "main"




Any guesses??


Thanks,

Kedar


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to