title: How to use jai-imageio in IntelliJ plugin
body: <p>I'm developing a plugin for intelliJ.</p>
  
  <p>This requires to use tesseract. When i tied to execute it as an console application, it works fine.</p>
  
  <p>But when i tried executing a plugin i get the following exception,</p>
  
  <pre><code>SEVERE: Need to install JAI Image I/O package.
  https://java.net/projects/jai-imageio/
  java.lang.RuntimeException: Need to install JAI Image I/O package.
  https://java.net/projects/jai-imageio/
      at net.sourceforge.vietocr.ImageIOHelper.getImageByteBuffer(ImageIOHelper.java:254)
  </code></pre>
  
  <p>in the following statement</p>
  
  <pre><code> final TIFFImageWriteParam tiffWriteParam = new TIFFImageWriteParam(Locale.US);
  
          tiffWriteParam.setCompressionMode(ImageWriteParam.MODE_DISABLED);
  
          // Get tif writer and set output to file
          final Iterator&lt;ImageWriter&gt; writers =  ImageIO.getImageWritersByFormatName(TIFF_FORMAT);
  
          if (!writers.hasNext()) {
              throw new RuntimeException(JAI_IMAGE_WRITER_MESSAGE);
          }
  </code></pre>
  
  <p><code>ImageIO.getImageWritersByFormatName</code> returns null</p>
  
  <p>I'm able execute this as a console application, but when i try to execute as a plugin for intelliJ it fails.</p>
  
  <p>Can anyone please guide how to use jai-image io in IntelliJ plugin.</p>
  
  <p>Regards,
  Siva N B</p>