Questions tagged [j2v8]

J2V8 is a set of Java bindings for V8. J2V8 focuses on performance and tight integration with V8. It also takes a 'primitive first' approach, meaning that if a value can be accessed as a primitive, then it should be. This forces a more static type system between the JS and Java code, but it also improves the performance since intermediate Objects are not created.

41 questions
0
votes
2 answers

how J2V8 returns Big integer?

At present I am using v8 version below for my windows: com.eclipsesource.j2v8:j2v8_win32_x86_64:4.6.0. I want to return Big integer but looks like this version does not support Big Int. return {'result' : BigInt('893800399029639267')}; This does not…
Suvendu Ghosh
  • 391
  • 1
  • 3
  • 16
0
votes
1 answer

Error in (Require) with J2V8

I'm trying to use Ripple-lib to get client's balance, inside my java application. To call Ripple javascript API, I use j2v8 as following: V8 runtime = V8.createV8Runtime(); runtime.executeVoidScript("" + "const RippleAPI =…
Nosairat
  • 482
  • 9
  • 20
0
votes
1 answer

j2v8 Object from nodejs script not accesible

I try to run a nodeJS script with j2v8 in my Java project and it runs normally but i can't get the Array or any other JScript Objects although this functionality is offered through j2v8. Additionally the script uses a npm module called Blocktrail…
Wanst31
  • 1
  • 1
0
votes
0 answers

How can I supply asynchronous data to Node from Java using J2V8

I've got an app written in JavaScript that makes use of the rxjs library to handle asynchronous data. I've wanted to plugin a java back end and I found J2V8 which lets me fire up Node and talk to it from Java. For synchronous tasks everything is…
Programming Guy
  • 7,259
  • 11
  • 50
  • 59
0
votes
1 answer

Can J2V8 execute anonymous function?

I'm trying to execute this piece of javascript code (function() { var z = ''; var b = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; for (var i = 0; i < b.length; i += 2) { z = z + parseInt(b.substring(i, i + 2), 16) +…
DarkSkull
  • 1,041
  • 3
  • 13
  • 23
0
votes
0 answers

mvn clean install of https://github.com/nidi3/graphviz-java hanging forever

I downloaded code from https://github.com/nidi3/graphviz-java and ran 'mvn clean install'. It is stuck after this output [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ graphviz-java --- [INFO] Changes detected -…
user19937
  • 587
  • 1
  • 7
  • 25
0
votes
1 answer

Linux distro with '/data' in root directory?

I'm trying to run an install script for J2V8 on Ubuntu and it appears to reference a non-existant directory called /data/jenkins/node. I've never heard of a folder like that in the root directory, any ideas of what this could be? EDIT: While this…
Adpolican
  • 51
  • 1
  • 2
0
votes
1 answer

Trouble building J2V8 on Ubuntu

I'm trying to build J2V8 on Ubuntu 16.04 but I keep getting errors. I'm running the install script provided on Github but I keep getting this error: (edited for brevity) make[1]: Leaving directory '/home/andrew/REUIOT/J2V8/node/out' ln -fs…
Adpolican
  • 51
  • 1
  • 2
0
votes
1 answer

Gradle unable to find existing m2 library

Can anyone tell me why gradle fails to load j2v8 dependency with the following script : apply plugin: 'java' sourceCompatibility = 1.7 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' test { useTestNG() include '**' …
avianey
  • 5,545
  • 3
  • 37
  • 60
-1
votes
1 answer

Is there javaToJS/jsToJava api similar to Rhino in J2V8?

It's grateful that you provide so excellent J2V8 framework, I'm embedding it for my project, My project is now using Rhino engine. I'm facing one problem. I found there's no javaToJS or jsToJava api in J2V8, but Rhino has this api. In our project,…
-1
votes
1 answer

How do I use java library in es6 version of javascript?

I want to use a java library in a javascript written in ES6. I tried j2v8 and nashorn, but they are not supporting ES6 features. Is there any other way to do the same?
Megha Rao
  • 31
  • 6
1 2
3