title: Apache HttpClientBuilder produces ClassNotFoundException: org.apache.http.config.Lookup
body: <p>I'm using <code>HttpClient</code> and and I use <code>httpCore.jar</code> and still I'm facing an exception </p>
  
  <pre><code>java.lang.ClassNotFoundException: org.apache.http.config.Lookup Error
  </code></pre>
  
  <p>around</p>
  
  <pre><code>HttpClient client = HttpClientBuilder.create().build(); 
  </code></pre>
  
  <p>My full code is following</p>
  
  <pre><code>package com.rest;
  
  import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStreamReader;
  
  import org.apache.http.HttpResponse;
  import org.apache.http.client.ClientProtocolException;
  import org.apache.http.client.HttpClient;
  import org.apache.http.client.methods.HttpGet;
  import org.apache.http.impl.client.HttpClientBuilder;
  
  public class Test33 {
  
      /**
       * @param args
       * @throws IOException 
       * @throws ClientProtocolException 
       */
      public static void main(String[] args) throws ClientProtocolException, IOException {
          String url = "http://www.google.com/search?q=httpClient";
  
          HttpClient client = HttpClientBuilder.create().build();
          HttpGet request = new HttpGet(url);
  
  
          HttpResponse response = client.execute(request);
  
          System.out.println("Response Code : "
                          + response.getStatusLine().getStatusCode());
  
          BufferedReader rd = new BufferedReader(
              new InputStreamReader(response.getEntity().getContent()));
  
          StringBuffer result = new StringBuffer();
          String line = "";
          while ((line = rd.readLine()) != null) {
              result.append(line);
          }
      }
  }
  </code></pre>