I\'ve been trying to write a java program that uses the Runtime.getRuntime().exec() method to use the command-line to run an instance of the program \"tesseract
Runtime.getRuntime().exec()
well tesseract is external command so you do not need to use it with cmd. Add tesseract to environment variables. Use direct command as :
tesseract
cmd
String[] commands = {"tesseract", imageFilePath, outputFilePath };
Exist status 1 means Incorrect function. See process exit status