'. '

AvatarJS

From APIDesign

(Difference between revisions)
Jump to: navigation, search
(New page: AvatarJS is a re-implementation of NodeJS on top of the JVM. JDK8 comes with Nashorn and that is certainly better JavaScript virtual machine than old Rhino. How...)
Line 1: Line 1:
[[AvatarJS]] is a re-implementation of [[NodeJS]] on top of the [[JVM]]. [[JDK]]8 comes with [[Nashorn]] and that is certainly better [[JavaScript]] virtual machine than old [[Rhino]]. However [[NodeJS]] is not just [[JavaScript]], it also contains a lot of native bindings. What can be done with those?
[[AvatarJS]] is a re-implementation of [[NodeJS]] on top of the [[JVM]]. [[JDK]]8 comes with [[Nashorn]] and that is certainly better [[JavaScript]] virtual machine than old [[Rhino]]. However [[NodeJS]] is not just [[JavaScript]], it also contains a lot of native bindings. What can be done with those?
 +
 +
 +
=== Get [[AvatarJS]] ===
 +
 +
Well, just download [[AvatarJS]] binaries and you are set to go. One could get the [[AvatarJS]] libraries from maven.java.net (as of Feb 17, 2014):
 +
 +
* The JAR: https://maven.java.net/index.html#nexus-search;quick~avatar-js
 +
* The native library: https://maven.java.net/index.html#nexus-search;quick~libavatar-js
 +
 +
To bind them together I renamed to libraries:
 +
 +
<source lang="bash">
 +
avatar-js.jar
 +
libavatar-js-linux-x64.so
 +
libavatar-js.so -> libavatar-js-linux-x64.so
 +
 +
# and then I could execute them as
 +
java -Djava.library.path=. -jar avatar-js.jar
 +
</source>

Revision as of 11:59, 6 May 2014

AvatarJS is a re-implementation of NodeJS on top of the JVM. JDK8 comes with Nashorn and that is certainly better JavaScript virtual machine than old Rhino. However NodeJS is not just JavaScript, it also contains a lot of native bindings. What can be done with those?


Get AvatarJS

Well, just download AvatarJS binaries and you are set to go. One could get the AvatarJS libraries from maven.java.net (as of Feb 17, 2014):

To bind them together I renamed to libraries:

avatar-js.jar
libavatar-js-linux-x64.so
libavatar-js.so -> libavatar-js-linux-x64.so
 
# and then I could execute them as 
java -Djava.library.path=. -jar avatar-js.jar
Personal tools
buy