title: JAI vendorname == null
body: <p>So I finished coding my application to rotate TIFF images which required JAI to manipulate the TIFFs. </p>
  
  <p>It works fine when working under Eclipse, but whenever I build a fat jar for the library and then create one implementing that (per <a href="http://fjep.sourceforge.net/fjeptutorial.html" rel="noreferrer">http://fjep.sourceforge.net/fjeptutorial.html</a>), when I do the java -jar Push.jar \path\to\dir, it runs up until it hits the part where it is compressing and saving:</p>
  
  <pre><code>TIFFImageWriterSpi tiffspi = new TIFFImageWriterSpi();
  ImageWriter writer = tiffspi.createWriterInstance();
  //Iterator&lt;ImageWriter&gt; iter =  ImageIO.getImageWritersByFormatName("TIFF");
  //ImageWriter writer = iter.next();
  
  ImageWriteParam param2 = writer.getDefaultWriteParam();
  param2.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
  
  param2.setCompressionType("LZW");
  param2.setCompressionQuality(0.0f);
  File fOutputFile = workArea[i];
  ImageOutputStream ios = ImageIO.createImageOutputStream(fOutputFile);
  writer.setOutput(ios);
  
  if (frontPage == 1)
  {
       writer.write(null, new IIOImage(pg1, null, null), param2);
       writer.writeInsert(-1, new IIOImage(pg2, null, null), param2);
  }
  else if (frontPage == 2)
  {
       writer.write(null, new IIOImage(pg2, null, null), param2);
       writer.writeInsert(-1, new IIOImage(pg1, null, null), param2);
  }
  
  remaining = remaining - 1;
      if (remaining &gt; 0)
       System.out.println(remaining + " remaining.");
  else
       System.out.println("Done.");
  </code></pre>
  
  <p>It blows up on the first line of that section with the message:</p>
  
  <pre><code> Exception in thread "main" java.lang.IllegalArgumentException: vendorName == null!
   ....rest of stack trace.
  </code></pre>