Is it possible redirect and use different Java Runtime Environment than one included with installer?

  • KM03660824
  • 30-Jun-2020
  • 30-Jun-2020

Summary

Redirect Java Runtime Environment used by testing tool.

Question

Currently there is no support for customized installers. For more information, see Document ID KM703481 - What is the available support for customized installers or packages?

Due to company policies, Java Runtime Environment (JRE) must be used from a particular source and version, located on different path. Is it possible to redirect/user JRE on alternative location other than one imposed by installer?

Answer

From Micro Focus side, there is no built-in or official procedure to make these changes. R&D and Support don’t recommend and/or encourage use (and/or redirection) to another version of Java. Quality Assured process was performed for original Java files and version included within Built-in installation package.

If testing tool is pointing to any other installation of Java, this would be considered as a customized installation and customer will need to confirm that any issue is reproducible using original UFT installation package and Java JRE.

Workaround:

IMPORTANT: The following is provided for workaround purposes only. It is not supported by Micro Focus. If problems exist when using installation implemented with below settings, end-user must first confirm/test built-in installer provided originally (not customized) before any assistance can be provided

Below is specified JRE path for the Java Add-in transformation:

NOTE: setup both, if Windows applies

- (Windows 32/64bits) HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\JavaAgent

"JrePath"="C:\\Program Files (x86)\\Micro Focus\\Unified Functional Testing\\\\JRE"

- (Windows 64bits) [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercury Interactive\JavaAgent]

"JrePath"="C:\\Program Files (x86)\\Micro Focus\\Unified Functional Testing\\\\JRE"

DISCLAIMER OF WARRANTY

The example software is experimental and is provided as a courtesy, free of charge, "AS-IS" by Micro Focus. Micro Focus shall have no obligation to maintain or support this software. MICRO FOCUS MAKES NO EXPRESS OR IMPLIED WARRANTY OF ANY KIND REGARDING THIS SOFTWARE. MICRO FOCUS SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT, TORT OR ANY OTHER LEGAL THEORY, IN CONNECTION WITH OR ARISING OUT OF THE FURNISHING, PERFORMANCE OR USE OF THIS SOFTWARE.