...
Download and install Java JRE/JDK on the TFS Agent. See Unified Agent Prerequisites for supported Java versions.
Set your JAVA_HOME system variable to the relevant Java version on the TFS Agent (see versions in the previous step).
The relevant package manager must be installed. For details, see https://whitesource.atlassian.net/wiki/spaces/WD/pages/1140852201/Getting+Started+with+the+Unified+Agent#Prerequisites.
Unified Agent Configuration
...