-
Notifications
You must be signed in to change notification settings - Fork 291
Open
Description
I want to use node-java in node-webkit application (with html+js+java in which the javascript should call a java method). I followed the steps mentioned below.
- Installed node
2.Created nodewebkit application at ..\test_nwk_app folder with required html, javascript and java class files.
- installed node-java (using npm install -g java) in the test_nwk_app
Could not install node-java directly in the application folder - getting msbuild errors.
So, installed using Microsoft Visual Studio command prompt(at default location - C:\Users...\node_modules ) using npm install -g java. Rebuilt it for node-webkit using the command : nw-gyp --rebuild --target = 0.9.2. Then copied the node_modules folder to the application folder test_nwk_app
Also, though -g option is used node-java is not installed globally. - When the javascript file using the node-java module is executed in the node command prompt, rebuilding it for the node-webkit (nw-gyp --rebuild --target = 0.9.2) it worked fine. But, after rebuilding it - it raised jvm_dll_package.json missing error
- Also, when the packed node-webkit application is executed using nw.exe, java is recognized as [object object] and any methods inside it are noted as undefined.
These steps are tried using
i. node-0.10.28+node-webkit-0.9.2
ii. node-0.10.28+node-webkit-0.8.5
iii. node-0.10.22+node-webkit-0.8.5
None of the above combinations, gave a successful result.
Could anyone please let me know if i have missed anything or the sequence of steps on how to use node-java in node-webkit application?
BTW, OS is windows7 and visual studio version used is 2012
Thanks in Advance,
Gayatri
Metadata
Metadata
Assignees
Labels
No labels