I'm developing a plugin for intelliJ.
This requires to use tesseract. When i tied to execute it as an console application, it works fine.
But when i tried executing a plugin i get the following exception,
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)
in the following statement
final TIFFImageWriteParam tiffWriteParam = new TIFFImageWriteParam(Locale.US);
tiffWriteParam.setCompressionMode(ImageWriteParam.MODE_DISABLED);
// Get tif writer and set output to file
final Iterator<ImageWriter> writers = ImageIO.getImageWritersByFormatName(TIFF_FORMAT);
if (!writers.hasNext()) {
throw new RuntimeException(JAI_IMAGE_WRITER_MESSAGE);
}
ImageIO.getImageWritersByFormatName
returns null
I'm able execute this as a console application, but when i try to execute as a plugin for intelliJ it fails.
Can anyone please guide how to use jai-image io in IntelliJ plugin.
Regards, Siva N B