title: Running Node.js on Java 8 Nashorn with Avatar.js on Windows "no avatar-js in java.library.path"
body: <p>For a sandbox project <a href="https://github.com/PaulVI/NashornSandbox" rel="nofollow noreferrer">https://github.com/PaulVI/NashornSandbox</a></p>
  
  <p>I am trying to run helloWorld.js Node.js on Java 8 Nashorn with Avatar.js on Windows like</p>
  
  <p><code>"C:\Program Files\Java\jdk1.8.0\bin\java" -Djava.library.path=lib -jar lib/avatar-js.jar helloWorld.js</code> </p>
  
  <p>and get "no avatar-js in java.library.path", while it is.</p>
  
  <pre><code>D:\Workspaces\Enide-Studio-2014-011-win64\NashornSandbox&gt;"C:\Program Files\Java\jdk1.8.0\bin\java" -Djava.library.path=lib -jar lib/avatar-js.jar helloWorld.js
  Exception in thread "main" java.lang.UnsatisfiedLinkError: no avatar-js in java.library.path
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
          at java.lang.Runtime.loadLibrary0(Runtime.java:870)
          at java.lang.System.loadLibrary(System.java:1116)
          at com.oracle.libuv.LibUV.&lt;clinit&gt;(LibUV.java:33)
          at com.oracle.avatar.js.eventloop.EventLoop.&lt;init&gt;(EventLoop.java:397)
          at com.oracle.avatar.js.Server.&lt;init&gt;(Server.java:158)
          at com.oracle.avatar.js.Server.&lt;init&gt;(Server.java:137)
          at com.oracle.avatar.js.Server.&lt;init&gt;(Server.java:125)
          at com.oracle.avatar.js.Server.main(Server.java:121)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/nNVxh.png" alt=""></p>