在Windows 8上使用Avatar.js在Java 8 Nashorn上运行Node.js“在java.library.path中没有avatar-js” [英] Running Node.js on Java 8 Nashorn with Avatar.js on Windows "no avatar-js in java.library.path"

查看:165
本文介绍了在Windows 8上使用Avatar.js在Java 8 Nashorn上运行Node.js“在java.library.path中没有avatar-js”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于沙盒项目 https://github.com/PaulVI/NashornSandbox

我试图在Windows 8上使用Avatar.js在Java 8 Nashorn上运行helloWorld.js Node.js

I am trying to run helloWorld.js Node.js on Java 8 Nashorn with Avatar.js on Windows like

C:\Program Files\Java\jdk1.8.0\bin\java-Djava.library.path = lib -jar lib / avatar-js.jar helloWorld.js

并获得java.library.path中没有avatar-js,而它是。

and get "no avatar-js in java.library.path", while it is.

D:\Workspaces\Enide-Studio-2014-011-win64\NashornSandbox>"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.<clinit>(LibUV.java:33)
        at com.oracle.avatar.js.eventloop.EventLoop.<init>(EventLoop.java:397)
        at com.oracle.avatar.js.Server.<init>(Server.java:158)
        at com.oracle.avatar.js.Server.<init>(Server.java:137)
        at com.oracle.avatar.js.Server.<init>(Server.java:125)
        at com.oracle.avatar.js.Server.main(Server.java:121)

推荐答案

Marko是对的,重命名为avatar-js .dll和avatar-js-win-x64.dll使它在Windows上运行。

Marko is right, renaming to avatar-js.dll and avatar-js-win-x64.dll makes it run on Windows.

这篇关于在Windows 8上使用Avatar.js在Java 8 Nashorn上运行Node.js“在java.library.path中没有avatar-js”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆