Setting up artifactory on Ubuntu: ERROR: cannot find a JRE or JDK -
when attempting install artifactory, run following command:
sudo service artifactory check
i following output:
created output file /root/artifactory-2.3.2/logs/consoleout.log cannot find jre or jdk. please set java_home >=1.5 jre
i used following java home:
# java /usr/bin/java
i have added java home etc/artifactory/default follows:
export java_home=/usr/bin/java
my /etc/environment looks like:
java_home="/usr/bin/java"
what doing wrong?
java_home should set directory 1 level above "bin" subdirectory containing java executable file, not file itself. /usr/bin/java on ubuntu symlink actual java installation. find actual directory (i pasted commands system):
$ ls -l /usr/bin/java lrwxrwxrwx 1 root root 22 2012-06-14 17:33 /usr/bin/java -> /etc/alternatives/java* $ ls -l /etc/alternative/java lrwxrwxrwx 1 root root 35 2012-06-14 17:33 /etc/alternatives/java -> /usr/lib/jvm/java-7-oracle/bin/java*
so in case java_home should set /usr/lib/jvm/java-7-oracle - system may different.
you should add bin subdirectory path:
export path=$path:$java_home/bin
try typing
java -version
from command line test out settings.
Comments
Post a Comment