While installing UIMA I got this steps in readme file
* Set JAVA_HOME to the directory of your JRE installation you would like to use for UIMA. * Set UIMA_HOME to the apache-uima directory of your unpacked Apache UIMA distribution * Append UIMA_HOME/bin to your PATH * Please run the script UIMA_HOME/bin/adjustExamplePaths.bat (or .sh), to update paths in the examples based on the actual UIMA_HOME directory path. This script runs a Java program; you must either have java in your PATH or set the environment variable JAVA_HOME to a suitable JRE. I opened /etc/environment and perfomed this changes:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/UIMA_HOME/bin" JAVA_HOME="/usr/lib/jvm/java-7-openjdk-i386" UIMA_HOME="/root/Desktop/karim/software/UIMA/UIMA_SDK_1.4.5" after that executed:
UIMA/UIMA_SDK_1.4.5/bin# ./documentAnalyzer.sh which gave this error:
./documentAnalyzer.sh: 2: .: Can't open /bin/setUimaClassPath.sh documentAnalyzer.sh code :
#!/bin/sh . "$UIMA_HOME/bin/setUimaClassPath.sh" if [ "$JAVA_HOME" = "" ]; then JAVA_HOME=$UIMA_HOME/java/jre fi "$JAVA_HOME/bin/java" -cp "$UIMA_CLASSPATH" -Xms128M -Xmx900M "-Duima.home=$UIMA_HOME" "-Duima.datapath=$UIMA_DATAPATH" -DVNS_HOST=$VNS_HOST -DVNS_PORT=$VNS_PORT "-Djava.util.logging.config.file=$UIMA_HOME/Logger.properties" com.ibm.uima.reference_impl.application.docanalyzer.DocumentAnalyzer What is the mistake here? I guess I set environment variable correctly
PATH="...:/UIMA_HOME/bin"line is either a copy paste error or you are missing a$PATH="...:$UIMA_HOME/bin"cat "$UIMA_HOME/bin/setUimaClassPath.sh"and see whether there are error messages.cat: /bin/setUimaClassPath.sh: No such file or directory@lesmana$UIMA_HOMEis not defined. this can have many causes. ultimately the solution is to make sure that the variable is defined.