commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kedar Panse <ke...@bancbridge.com>
Subject Re: [HTTPCLINET 3.0 -alpha] org/apache/commons/codec/DecoderException
Date Sun, 06 Jun 2004 21:55:50 GMT
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: commons-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message