title: How to combine library with my jar?
body: <p>Ok so i wrote a program that makes use of a 3rd party open source library and i want to package it with my program in a single jar. I'm using netbeans 6.8 and everything I've tried java always spit back the error: </p>
  
  <pre><code>java.lang.NoClassDefFoundError: libraryname;
  </code></pre>
  
  <p><em>off topic</em>:also i would like to know how to make an executable-jar(exe) through netbeans if it is possible. (ive seen programs that were written in java but were an .exe)</p>
  
  <p><strong>EDIT</strong> discovered a plugin for eclipse called FatJar which can do what i want, but i cant find something similar for netbeans, is there such thing?</p>