Tigase and JAVA_HOME
After successfully compiling Tigase I try to execute it but Tigase complains about JAVA_HOME:
~/git/tigase-server $ ./scripts/tigase.sh start etc/tigase.conf JAVA_HOME is not set. Please set it to correct value before starting the sever.
However, I believe my JAVA_HOME is properly set because running echo $JAVA_HOME returns:
~/git/tigase-server $ echo $JAVA_HOME /usr/lib/jvm/java-7-oracle
My /etc/environment is like this:
JAVA_HOME="/usr/lib/jvm/java-7-oracle" export JAVA_HOME
Any idea what is wrong? Do I need a specific version of JDK? OpenJDK instead of Oracle maybe? Thank you.