Would like to mention Works on 1.4 .2. I guess some changes in 1.5?? Will it break in next java release?


Kedar

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]



Reply via email to