This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.
Failed to set path to Java
Although the error points to problem with java, it was discovered that the issue is caused due to special characters used in the service account used during the installation.
As a workaround it is required to avoid the following - '>', '<' ,'|',''',""", "&" . Those characters can change the behavior of the ALM installation scripts.