Packaging: Export JAVA_HOME in RPM init script

Closes #5433
Closes #5434