Questions tagged [avatarjs]

Avatar.js is a project to bring the node programming model, APIs and module ecosystem to the Java platform.

Avatar.js enables a new class of hybrid server applications that can leverage two of the most popular programming languages and ecosystems today. These Java+JavaScript applications can leverage capabilities of both environments - access the latest node frameworks while taking advantage of the Java platform's scalability, manageability, tools, and extensive collection of Java libraries and middleware.

The project includes Java bindings for libuv and node's http parser. nodelets

9 questions
8
votes
3 answers

Avatar.js and Project Avatar

In the context of Java 8 and Nashorn I see two projects being regularly mentioned. Avatar.js and Project Avatar What is the relation of these projects? Avatar.js has very little documentation. As far as I gathered it offers the possibility to…
jbandi
  • 17,499
  • 9
  • 69
  • 81
5
votes
1 answer

Gradle task to put jars from Maven repository into project lib folder

http://blog.jonasbandi.net/2014/03/running-nodejs-applications-on-jvm-with.html describes how to prepare to run Avatar.js project. For a Avatar.js project some jar and native binaries are at maven repository …
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
3
votes
0 answers

Can Gradle execute JavaScript (instead of Java entry point)?

Can Gradle possibly execute JavaScript? While there is no standard plugins for javascript, is it possible to make something like JavaExec task execute(type:JavaExec) { main = mainClass classpath = sourceSets.main.runtimeClasspath } Reason:…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
1
vote
1 answer

Avatar.js on SPARC

Node JS application is working fine with Linux, windows and Solaris. But Node JS is not working in SPARC system because it is not supporting V8 engine. Myself found a External project called AVATAR, which is used to run NODE JS Programs in JVM (Java…
Manu C Rajan
  • 153
  • 1
  • 2
  • 13
1
vote
1 answer

Embed Avatar JS in Java Application Example

Using Java 8, I'd like to programmatically load a javascript file and execute it using Avatar JS (for Node env support). I also want to use Maven to manage the dependencies. Here's the simple Nashorn snippet I'm using and I'd like to extend this to…
Phil Mander
  • 1,819
  • 15
  • 20
1
vote
1 answer

Gradle task to run Nashorn JavaScript

Can there be gradle/groovy code analog for launch of java -Djava.library.path=lib -jar lib/avatar-js.jar helloWorld.js, that is lanching .js file with Java 8 and passing some libs or using defined dependencies apply plugin: 'java' apply plugin:…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
1
vote
1 answer

Running Node.js on Java 8 Nashorn with Avatar.js on Windows "no avatar-js in java.library.path"

For a sandbox project https://github.com/PaulVI/NashornSandbox 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…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
0
votes
0 answers

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

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…
0
votes
1 answer

Reusing javascript in java

I've got a challenge in my current organization on re-using the capabilities written on javascript in our java code. Just to give a background: We have two different automation frameworks: Java using maven - Uses Cucumber jvm and selenium with…
Vimalraj Selvam
  • 2,155
  • 3
  • 23
  • 52