title: NoClassDefFoundError: javax/ws/rs/client/ClientBuilder
body: <p>I'm trying to creat a very simple Rest Client.
  I,m using: 
  Netbeans 8
  maven project </p>
  
  <p>dependecies: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.ws.rs&lt;/groupId&gt;
              &lt;artifactId&gt;javax.ws.rs-api&lt;/artifactId&gt;
              &lt;version&gt;2.1-m01&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.jersey.core&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-client&lt;/artifactId&gt;
              &lt;version&gt;2.24.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.resteasy&lt;/groupId&gt;
              &lt;artifactId&gt;resteasy-client&lt;/artifactId&gt;
              &lt;version&gt;3.0.16.Final&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and the code: </p>
  
  <pre><code>public class Client_con {
  
  public static final String BASE_URI = "http://localhost:8000/test";
  public static final String PATH_NAME = "/h";
  public static void main (String [] args){
  
     Client client = ClientBuilder.newClient();
  
      //WS text get
      WebTarget target = client.target(BASE_URI).path(PATH_NAME);
      String res = target.request().get().readEntity(String.class);
      System.out.println(res);
  }
  }
  </code></pre>
  
  <p>But I always obtain the same error: </p>
  
  <pre><code>  Exception in thread "main" java.lang.NoClassDefFoundError: 
     javax/ws/rs/client/ClientBuilder
        at ah.consumer.Client_con.main(Client_con.java:38)
    Caused by: java.lang.ClassNotFoundException: 
      javax.ws.rs.client.ClientBuilder
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         ... 1 more
  </code></pre>
  
  <p>I don't know what I can do...</p>