I am trying to install some software (Shibboleth) in Ubuntu 14.04. I already have Java 7 OpenJDK installed in /usr/lib/jvm/ and I have these lines in /usr/environment
JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64" export JAVA_HOME
If I type echo $JAVA_HOME , I get /usr/lib/jvm/java-7-openjdk-amd64 . However, when I try to install Shibboleth, I always get Error: JAVA_HOME is not defined correctly. Cannot execute java Error: JAVA_HOME is not defined correctly. Cannot execute java .
Interestingly, if I type the java command, it works (it refers to / usr / lib / java, which is a link to the right one). However, when I try to run bash bin/install.sh Shibboleth, I get a JAVA_HOME error
I already tried installing JAVA_HOME in the jre folder with the same result. Any ideas?
source share