title: Getting NoClassDefFoundError while invoking external JAR in maven project
body: <p>I have a maven based project where I have to invoke an external jar <strong>(say country.jar)</strong></p>
  
  <p>I added this jar on <strong>src/lib</strong> folder and did below setting in pom.xml </p>
  
  <pre><code>&lt;dependency&gt;
       &lt;groupId&gt;country-stubs&lt;/groupId&gt;
       &lt;artifactId&gt;country-stubs&lt;/artifactId&gt;
       &lt;scope&gt;system&lt;/scope&gt;
       &lt;version&gt;1.0&lt;/version&gt;
       &lt;systemPath&gt;${basedir}\src\lib\country.jar&lt;/systemPath&gt;
    &lt;/dependency&gt;
  </code></pre>
  
  <p>While Running my application I am getting error 
  <strong><em>java.lang.NoClassDefFoundError: com/fsg/bpo/webservices/countWebService</em></strong></p>
  
  <p>Location(<strong>com/fsg/bpo/webservices/countWebService</strong>) is referring to the class present under country JAR</p>
  
  <p>Do I need to add few more settings to configure external JAR in maven ?</p>