Setting environment variable TESSDATA_PREFIX in Tomcat
问题 We are using Tesseract OCR Java library called Tess4J. It works fine if run as a standalone application. It needs a variable called TESSDATA_PREFIX which contains the tessdata config and other charset related files. It also runs fine with embedded Tomcat 6 server in eclipse. I had set TESSDATA_PREFIX as an environment variable by using the launch configuration. But when I package everything into a WAR and drop it in deploy directory of tomcat, the environment variable does not seem to be