title: Import and use a class from a jar using Maven
body: <p>I am trying to implement hoptoad in my existing maven project. I ve given the following lines in pom.xml as suggested in <a href="http://code.google.com/p/hoptoad/" rel="nofollow">http://code.google.com/p/hoptoad/</a></p>
  
  <pre><code>&lt;project&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;hoptoad-repository&lt;/id&gt;
        &lt;name&gt;Hoptoad Repository&lt;/name&gt;
        &lt;url&gt;http://hoptoad.googlecode.com/svn/maven2&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;code.lucamarrocco&lt;/groupId&gt;
        &lt;artifactId&gt;hoptoad-notifier&lt;/artifactId&gt;
        &lt;version&gt;1.8&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>When i try to use the <code>HoptoadNotice</code> in my catch block, i m getting <code>ClassNotFoundException</code>. I am using Eclipse IDE. I am not able to figure out, that the problem is because of inclusion of this code(in pom) or in the IDE. I can understand that the inclusion of these lines alone do not help the code to recognize the jar. So, i tried installing the jar in maven repository. But still it did not help.</p>
  
  <p>Note:- I have not just blindly copied as shown above, directly into the pom.xml. I have included the lines of code wrt <code>&lt;dependencies&gt;</code> and <code>&lt;repositories&gt;</code> blocks.</p>