Hello,
You can simply add the JVM you want to use in file bin/openfire directly.
I use /usr/java/latest JVM
Add this line :
# Uncomment the following line to override the JVM search sequence
INSTALL4J_JAVA_HOME_OVERRIDE=/usr/java/latest
Hope this helps