This is a bit hacky.
If there is no JVM on the system and a JVM and amlen-webui are installed in the same rpm transaction, then on RHEL8 systems, that JVM is often not the default JVM for the system (i.e. /usr/bin/java is not a symlink to it) during the post install phase of the transaction.
I /think/ this is a bug in the rpm at this vintage - but we would around it by - if no java is in the path when we wanting to use it - dumping to our log some interesting directories and then explicitly setting a path to the JVM we have pre-reqd.
This is a bit hacky. If there is no JVM on the system and a JVM and amlen-webui are installed in the same rpm transaction, then on RHEL8 systems, that JVM is often not the default JVM for the system (i.e. /usr/bin/java is not a symlink to it) during the post install phase of the transaction.
I /think/ this is a bug in the rpm at this vintage - but we would around it by - if no java is in the path when we wanting to use it - dumping to our log some interesting directories and then explicitly setting a path to the JVM we have pre-reqd.