Ensure java is installed before the service start.