Project

General

Profile

Tigase and JAVA_HOME

Diego Barrera
Added about 5 years ago

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.


Replies (2)

Added by Wojciech Kapcia TigaseTeam about 5 years ago

Have you configured JAVA_HOME in @etc/tigase.conf@?

Added by Diego Barrera about 5 years ago

No I didn't, thanks a lot that solved it.

    (1-2/2)