Questions tagged [node-java]

A node.js module that will bridge API to connect with existing Java APIs

A node.js module that will bridge API to connect with existing Java APIs: https://github.com/joeferner/node-java

40 questions
4
votes
2 answers

nodemon is not restarting the server when using node-java package

When using node-java package, nodemon doesn't restart when the files change. If I remove node-java package then nodemon will restart when there are file changes. Even the manual restart (rs) is not working when using node-java package in server.…
Som
  • 950
  • 2
  • 16
  • 29
3
votes
2 answers

Reading public and private key from stored files in node js

I wanted to encrypt and decrypt a message in node using public and private keys stored in my system. I was using the following java code to read the file and use the keys. Java Code: byte[] keyBytes = Files.readAllBytes(new…
Ritvik Joshi
  • 85
  • 1
  • 1
  • 6
3
votes
1 answer

Fatal Error: Unable to find package java.lang in classpath or bootclasspath

i am trying to use node-java package.i need to run small java code from node.js.first i run command npm install java after that i cloned source code of this library.(https://github.com/joeferner/node-java) i went to node-java directory using cd…
mathlearner
  • 7,509
  • 31
  • 126
  • 189
3
votes
0 answers

Problems installing java module in node.js

During installation I have following error: C:\Users\me\Desktop\myproject> npm install java - > java@0.4.2 install C:\Users\me\Desktop\myproject\node_modules\java > node-gyp rebuild C:\Users\me\Desktop\myproject\node_modules\java>node "C:\Program…
pixel
  • 24,905
  • 36
  • 149
  • 251
2
votes
1 answer

npm install java: error MSB4019: The imported project "D:\Microsoft.Cpp.Default.props" was not found

We are trying to use the node java bridge to run a java application.. As mentioned in the requirement we have to install the java in the node project. so i am running the npm install java I have already run the below command suggested in many…
mahesh
  • 909
  • 2
  • 18
  • 37
2
votes
0 answers

node.js and node-java: What is equivalent node.js code for this java code?

I am investigating replicating some functionality that we now have, but using node.js, but our current application interfaces to a product that exposes a Java API, so I am also looking into using node-java to do that interface, but I'm having…
user555303
  • 1,146
  • 3
  • 20
  • 44
2
votes
1 answer

problems initializing my java method using node-java

I'm not a java jock, but I'm trying to learn how to use node-java. I tried to run one of the examples listed on npm java and gethub node-java and they don't work. I think my method is not initialize in my node.js script correctly. I'm using JDK/JRE…
Russ
  • 21
  • 4
2
votes
0 answers

npm install java gives error

I downloaded the node-java repo from https://github.com/joeferner/node-java. And I am currently using java version 1.7.0_79. My system variable in the control panel points to C:\Program Files\Java\jdk1.7.0_79\bin;more here I run npm install java but…
Kanika Midha
  • 317
  • 1
  • 2
  • 9
1
vote
0 answers

RXweb formbuild group in array not working

https://stackblitz.com/edit/angular-jvpsc2?file=src/app/prop-array-createblank.component.ts export const addressFormGroup = () => { return formBuilder.group({ country: [null, [RxwebValidators.required()]], city: [null,…
Bcs Dev1
  • 11
  • 2
1
vote
1 answer

How to pass a result from my java code to nodeJs?

I am writing an algo to analyze market data in Java, to visualize my data i'd like to make use of an existing charting library from tradingview. This free charting library runs on nodeJS. I'm having a lot of trouble understanding how to populate it…
leroyv
  • 63
  • 5
1
vote
0 answers

npm install java fatal error: 'jni.h' file not found #include

I am trying to install java node package: npm install java And I am getting following error: CXX(target) Release/obj.target/nodejavabridge_bindings/src/java.o In file included from ../src/java.cpp:1: ../src/java.h:7:10: fatal error: 'jni.h' file…
1
vote
0 answers

Running a jar in a Nodejs as a seperate process

Is there a way to run a jar in a Nodejs as an independent process. I tried using exec. But each time it creates a new process. Is there a way to keep running jar in an independent process and call its procedures as and when required ? Also, this…
Ankuj
  • 713
  • 3
  • 10
  • 27
1
vote
1 answer

Node-java : Install error: "fatal error LNK1181 cannot open input file DelayImp.lib"

I'm trying to install java on my node server but I'm facing some problems. My computer : Windows 10 x64 Node v7.9.0 NPM v5.8.0-next.0 Visual Studio 2017 From Visual Studio Installer, C++ modules : SDK Windows 10 SDK Windows 8.1 SDK UCRT From…
Nicolas Leucci
  • 2,829
  • 1
  • 13
  • 12
1
vote
2 answers

How can I export a Java class (.jar) from Clojure?

I am relatively novice at Clojure and Java. I have an existing Clojure project someone else wrote that I am trying to embed in NodeJS using node-java. Clojure The project defines a namespace that provides certain public functions, like so: (ns…
Sir Robert
  • 4,686
  • 7
  • 41
  • 57
1
vote
0 answers

How to set up a Node.js project with node-java as Java API bridge and node-java-maven to manage the Java dependencies

I'm trying to initialize a Java instance for a Node.js project. I want to use this project to manage the dependencies: https://github.com/joeferner/node-java-maven and this project as the Java API bridge: https://github.com/joeferner/node-java I am…
Selena
  • 2,208
  • 8
  • 29
  • 49
1
2 3