When i the following code as it is in
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d4e37 tutorial. I get the following exception when i run the following code.
The exception I get is follow.
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.http.protocol.BasicHttpContext: method <init>()V not found
at org.apache.http.impl.client.DefaultHttpClient.createHttpContext(DefaultHttpClient.java:205)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:532)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
at httpclient.Main.main(Main.java:31)
Java Result: 1
Can somebody help me please.
Thanks in advanced.