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
Another workaround without having to recompile and deploy is using the old DOS style paths for e.g C:\Program Files would be C:\Progra~1. Of course this will be helpful only if you are reading the paths from a config file or DB and registry etc.