title: Java ClassNotFoundException with maven dependency?
body: <p>I am getting ClassNotFoundException and NoClassDefFoundError exceptions when I attempt to run my application using a maven defined dependency.</p>
  
  <p>I added my maven dependency for the jar in question to my pom.xml file with the following declaration:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;upload&lt;/groupId&gt;
      &lt;artifactId&gt;upload&lt;/artifactId&gt;
      &lt;scope&gt;system&lt;/scope&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;systemPath&gt;${basedir}\lib\upload.jar&lt;/systemPath&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>This added the relevant JAR file to my Maven Dependencies folder in Eclipse. I can access the classes in code but I get the mentioned exceptions once I run the application.</p>
  
  <p>The jar is referenced in my Java build path under Maven dependencies:</p>
  
  <p>when i am running the project am getting following exception</p>
  
  <pre><code>java.lang.NoClassDefFoundError: 
  </code></pre>