How to use tess4j in tomcat?
<p>I have used the tess4j library for recognize the image in the web. I have tested it java console and it work correct, but when i deploy it in the tomcat, it have error.</p>

<p>I have debug and see that this code:</p>

<pre><code>//Set up the writeParam
    TIFFImageWriteParam tiffWriteParam = new TIFFImageWriteParam(Locale.US);
    tiffWriteParam.setCompressionMode(ImageWriteParam.MODE_DISABLED);

    //Get tif writer and set output to file
    Iterator&lt;ImageWriter&gt; writers = ImageIO.getImageWritersByFormatName(TIFF_FORMAT);
    ImageWriter writer = writers.next();

    if (writer == null) {
        throw new RuntimeException("Need to install JAI Image I/O package.\nhttps://jai-imageio.dev.java.net");
    }
</code></pre>

<p>in getImageByteBuffer(IIOImage image) method of ImageIOHelper class have writers variable no next element. In console application it is ok. 
Any idea about it?</p>
