MacOS Mojave 10.14.5 openfire 4.3.2
When I started it after installing it, an error occurred and it did not start. The startup script is like /usr/local/openfire/bin/openfire.sh, so when I started it directly, Error: JAVA_HOME is not defined correctly. We cannot execute /System/Library/Frameworks/JavaVM.framework/Home/bin/java It had fallen in. I'm not sure about MacOS, but it seems that it can't be started because there is no such JAVA.
Therefore, the direct startup script was modified. --Changed JAVACMD to direct specification
/usr/local/openfire/bin/openfire.sh
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
#Edit
#JAVACMD="$JAVA_HOME/bin/java"
#Direct designation
JAVACMD="/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/bin/java"
fi
Now when I run it directly again, admin console starts.
Recommended Posts