path - Setting up environment variable in linux -
while installing uima got steps in readme file
* set java_home directory of jre installation use uima. * set uima_home apache-uima directory of unpacked apache uima distribution * append uima_home/bin path * please run script uima_home/bin/adjustexamplepaths.bat (or .sh), update paths in examples based on actual uima_home directory path. script runs java program; must either have java in path or set environment variable java_home suitable jre.
i opened /etc/environment , perfomed 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 executed:
uima/uima_sdk_1.4.5/bin# ./documentanalyzer.sh
which gave error:
./documentanalyzer.sh: 2: .: can't open /bin/setuimaclasspath.sh
documentanalyzer.sh code :
#!/bin/sh . "$uima_home/bin/setuimaclasspath.sh" if [ "$java_home" = "" ]; 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 mistake here? guess set environment variable correctly
i think answers given adding $ variable uima_home in path variable correct, but, think lacking export command variables. look, after set values, should writhe in /etc/environment:
export uima_home export java_home export path
that way, able use them later (always remember fix path variable $uima_home well).
if not work, try rebooting computer after setting variables said.
in case not work either, try repeating process , in console (after doing everythin on again) try using following command:
source /etc/environment
fianlly, if not work, try setting variables in file called /etc/profile (do same process: setting varialbes , exporting them), , should work.
Comments
Post a Comment