AvatarJS
From APIDesign
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):
- 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:
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