title: Using Apache Tika 1.9 in Netbeans 8.0.2 and Java 8 produces HUGE executable. What to do to reduce size?
body: <p>I haven't had much luck with external libraries, so I've just included the source for utilities in any project that uses utilities.</p>
  
  <p>Now I have a project that requires Apache Tika, so I have to have a library setup something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/kDCr8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kDCr8.png" alt="enter image description here"></a></p>
  
  <p>But to run the program from outside Netbeans, I apparently (per readme.txt in <code>dist</code> folder) need to zip the <code>.jar</code> and <code>lib</code> folder, unzip that zipped file, extract the contents, and run from wherever it's extracted to.</p>
  
  <p>But the Tika lib is 45MB. </p>
  
  <p>I only use 5 objects from the <code>tika-app-1.9.jar</code> library file:</p>
  
  <pre><code>import org.apache.tika.exception.TikaException;
  import org.apache.tika.metadata.Metadata;
  import org.apache.tika.mime.MimeTypeException;
  import org.apache.tika.parser.AutoDetectParser;
  import org.apache.tika.sax.BodyContentHandler;
  </code></pre>
  
  <p>How do I make a tiny subset of Tika objects into a library that will be a lot smaller than 45MB?</p>
  
  <p>Or am I missing the point of what I SHOULD do?</p>