title: Exporting jar from eclipse with classpaths...How do you do it?
body: <p>How do you properly export jar file from eclipse with all the class path dependencies?  </p>
  
  <p><strong>I have the following scenario:</strong><br>
  I have class A that uses class B - all are part of the same project.  When I run the project everything works just fine since everything is on the path.  </p>
  
  <p>Now... after exporting class A using Export>>Jar File>> option in eclipse, I obviously get an error when running class A since .jar can not find class B.    The solution that I found is to explicitly include both files into one single jar.  But I think it is not the best and ideal solution.  I think the better solution would be to export class A as jar and have a classpath for class B...</p>
  
  <p>Is it possible to include the classpaths through eslipse's 'export jar' option?  if so, then could someone outline the steps?</p>
  
  <p>Thanks!! </p>
  
  <p>P.S. I saw some similar posts on here, but none outline the solution explicitly and exactly. So please if mark this post as a 'dup' make sure you provide the link to the post that answers my question exactly and completely with the solution that works.  Thanks!! </p>