title: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
body: <p>Hi I am using followng maven dependencies. When I run the application in Eclipse, it is working fine. but when i deploy the application as jar file, it is throwing following error.</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
   at java.net.URLClassLoader.findClass(Unknown Source)
  </code></pre>
  
  <p>Following is my maven dependency file.</p>
  
  <pre><code>&lt;dependencies&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;${jersey.client.version}&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-media-moxy&lt;/artifactId&gt;
              &lt;version&gt;${jersey.client.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- http://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;
              &lt;artifactId&gt;json-simple&lt;/artifactId&gt;
              &lt;version&gt;1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
  
      &lt;properties&gt;
          &lt;jersey.client.version&gt;2.21&lt;/jersey.client.version&gt;
      &lt;/properties&gt;
  
  &lt;dependencies&gt;  
  </code></pre>
  
  <p>Any help on this.... I gone through following link, but it don't help me.</p>
  
  <p><a href="https://stackoverflow.com/questions/21564394/running-standalone-java-executable-in-eclipse-results-in-noclassdeffound">running standalone java executable in eclipse results in NoClassDefFound</a></p>