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
Issue:
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>(NativeCalls.java:40)
    at com.appworx.agent.AgentService.<init>(AgentService.java:262)
    at com.appworx.agent.AgentService.main(AgentService.java:1015)
Resolution:
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%