Configuring Nolio Agent to use preinstalled Java on Windows system
search cancel

Configuring Nolio Agent to use preinstalled Java on Windows system

book

Article ID: 245969

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio)

Issue/Introduction

How can we point/configure a windows agent to different (non-bundled) Java/JRE?

Environment

Release : 6.X

Component : CA RELEASE AUTOMATION AGENT

Resolution

Limitation: With an agent upgrade as per upgrade procedure the JRE of the agent is wiped of with new JRE (bundled in upgrade package) which means the content of JRE installed on the system, which can impact other applications relying JAVA present on system.

Recommendation: On windows we recommend to use the java bundled with Agent

Disclaimer: The below steps should be used with discretion of the reader, apprehending associated Risk elaborated in Limitation section above.

Step to configure Nolio Agent to use the pre-installed JRE on system:

  • Navigate to path where JRE install on system and create a copy of java.exe at path SYSTEM_JRE_INSTALL_PATH\jre\bin\java.exe
  • Rename the copied "java - Copy.exe" file to NolioAgent.exe
  • Delete the jre folder i.e. AGENT_INSTALL_DIR\jre folder.
  • Create either Junction or Symbolic link as below 
    • Junctions: mklink /J "AGENT_INSTALL_DIR\jre" "SYSTEM_JRE_INSTALL_PATH\jre"
    • Symbolic Link: mklink /D "AGENT_INSTALL_DIR\jre" "SYSTEM_JRE_INSTALL_PATH\jre"
  • Start the NolioAgent.

 

Additional Information

The future Enhancement Request (ER) is created in product to improve this behavior to adjust such configuration on windows.