UnsatisfiedLinkError: no avatar-js in java.library.path on mac

149 views Asked by At

I'm trying to run the Node.js application on JVM. I'm following this tutorial: http://blog.jonasbandi.net/2014/03/running-nodejs-applications-on-jvm-with.html. But when I'm trying to execute it on macOS High Sierra 10:13:6, getting the error.UnsatisfiedLinkError: no avatar-js in java.library.path.

Here dist is containing 3 files. 1.app.js(myApplication) 2.avatar-js.dylib 3.avatar-js.jar

The command I'm using for this on my terminal is:

java -Djava.library.path=dist -jar dist/avatar-js.jar app.jar

Exception occurred:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no avatar-js in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.oracle.libuv.LibUV.<clinit>(LibUV.java:33)
at com.oracle.avatar.js.Server.<init>(Server.java:166)
at com.oracle.avatar.js.Server.<init>(Server.java:140)
at com.oracle.avatar.js.Server.<init>(Server.java:128)
at com.oracle.avatar.js.Server.main(Server.java:122)

Expected output: Server running at http://127.0.0.1:8000/

0

There are 0 answers