Windows upgrade to 9.2.2 fails to start du to a "Can't find dependent libraries" error

Document ID : KB000108023
Last Modified Date : 26/07/2018
Show Technical Document Details
After upgrading Windows Agent or Automation Engine (master) to Applications Manager version 9.2.2 which adds support for , it fails to start up due to the below error, seen in the AgentService.log or RmiServer.log:

ErrorMsg: AwE-9999 Internal error
Details: nativecalls
java.lang.UnsatisfiedLinkError: %AW_HOME%\c\nativecalls.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.appworx.agent.nativ.NativeCalls.<clinit>(
    at com.appworx.agent.AgentService.<init>(
    at com.appworx.agent.AgentService.main(
Add Java's bin directory to the PATH variable. This can be achieved by editing the PATH variable or it can be set to be appended to the PATH variable in the %AW_HOME%\site\sosite.bat. The sosite.bat gets called every time the Applications Manager Service starts.

An example line below:

SET PATH=C:\Program Files\Java\jre1.8.0_171\bin;%PATH%