SOLUTION: openfireHome error

I’'ve spent far too many hours trawling these forums trying to find a solution to this installation problem on a linux server:

" Openfire Classes Home not found. Define system property “openfireHome” or create and add the openfire_init.xml file to the classpath"

SOLUTION:

edit the file openfire_install_directory/bin/openfire (using any text editor)

insert the line “openfireHome=/install_directory/openfire” anywhere (below the JVM override comments is a good place)

eg “openfireHome=/opt/openfire”

For me, it’s a permissions issue. I’m using server(Openfire 4.7.0, build e020f58) on macOS Monterey 12.1 (21C52)

SOLUTION:
sudo chmod -R 777 /usr/local/openfire