GOOS book Openfire On MacOS Mojave environment construction memo

This is a memo that I was in trouble when building the environment for GOOS books with MAC.

MacOS Mojave 10.14.5 openfire 4.3.2

Openfire installation

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

GOOS book Openfire On MacOS Mojave environment construction memo
Spring Boot environment construction memo on mac
Environment construction command memo with Docker on AWS
[Personal memo] Ruby on Rails environment construction (Windows)
[Spring Boot] Environment construction (macOS)
MySQL 5.7 (Docker) environment construction memo
Redmine (Docker) environment construction memo
From 0 to Ruby on Rails environment construction [macOS] (From Homebrew installation to Rails installation)
[Java development environment construction] Install OpenJDK 11 (Java 11) on macOS with Homebrew.
◆ Spring Boot + gradle environment construction memo
Rails on Docker environment construction procedure
Muscle Ruby on Rails Day 1 ~ Environment Construction ~
Protobuf and gRPC C ++ environment construction on Ubuntu 18.04
Ruby on Rails development environment construction on M1 Mac
GitLab development environment setup (GDK) on macOS (September 2020)