Tess4j no Centos7 server

Estou fazendo uma aplicação com OCR (Tess4j) para usar em servidor com wildfly no centos7 . Consegui usar no windows e no ubuntu, mas no centos7 estou apanhando.
Instalei o ghostscript e o tesseract, mas ao digitar o caminho do aquivo e carregar o servidor cai.

    package net.sourceforge.tess4j.example;

    import java.io.File;`Texto pré-formatado`
    import net.sourceforge.tess4j.*;

    public class TesseractExample {
        public static void main(String[] args) {
             ImageIO.scanForPlugins(); // for server environment
            File imageFile = new File("eurotext.tif");
            ITesseract instance = new Tesseract(); // JNA Interface Mapping
            //ITesseract instance = new Tesseract1(); // JNA Direct Mapping
            instance.setDatapath("/home/tessdata"); // replace <parentPath> with path to parent directory of tessdata
            instance.setLanguage("eng");

            try {
                String result = instance.doOCR(imageFile);
                System.out.println(result);
            } catch (TesseractException e) {
                System.err.println(e.getMessage());
            }
        }
    }