title: Trouble understanding the usage of external libraries in a java project/IntelliJ
body: <p>Now that I've learned a bit more, I can ask a more direct question.</p>
  
  <p>Scenario:
  I have a Java project in <code>IntelliJ Idea</code>, with the end goal of making a standalone .jar capable of running on Windows or Linux, either run from the command line with <code>java -jar jarname.jar</code> or simply by being double-clicked like any normal, simple jar.</p>
  
  <p>I've written a handful of classes, located in my <code>src/package/name</code> directory.  However, one of my classes requires the use of an external class, i.e. a class not located in my source directory or is not part of Java's default set of <code>.jar</code>'s in the <code>JDK</code>.</p>
  
  <p>How do I go about configuring <code>IntelliJ</code> to build the <code>.jar</code> artifact AND include the necessary resources inside of it, with everything needed put in the proper place, so that <em>my</em> class can use the resource by an ordinary <code>import</code> statement?  An answer given in example form would be awesome; I've almost figured it out, but there must be just one thing I'm not doing correctly.</p>
  
  <p>Thanks for your time,</p>
  
  <p>Yankee</p>
  
  <blockquote>
    <p>Sources:</p>
    
    <p><a href="http://tukaani.org/xz/java.html" rel="nofollow">http://tukaani.org/xz/java.html</a></p>
    
    <p>Viewing the directory structure of that source gives a better idea:</p>
    
    <p><a href="http://git.tukaani.org/?p=xz-java.git;a=tree" rel="nofollow">http://git.tukaani.org/?p=xz-java.git;a=tree</a></p>
  </blockquote>