You can try uncommenting it and pointing to java 8 manually. Also check lib folder in openfire directory. Are all libraries of the same modification date?
Have a look at how the /etc/init.d/openfire script starts Openfire. It probably either invokes java directly, or executes another script to start Openfire. Try doing that step ‘manually’, and see if an error pops up.
Look inside of the /etc/init.d/openfire script. See what it does. Somewhere, it starts Openfire trough some command. Try to execute that command, instead of executing the /etc/init.d/openfire script. You are likely to get an error. This will help to discover why the /etc/init.d/openfire script is failing.
Run the script in verbose mode, then you see all commands and what’s executed. Either run “sh -x …” or edit the script and add as the 2nd line “set -x”