-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem using nw.js with node-java #5398
Comments
Any ideas out there? This is a "show stopper" for us, and NW.js looks really promising. :-( |
Your NW and OS' version? |
The NW version is 0.18.2 and the OS version is Red Hat Enterprise Linux Workstation release 7.2 (Maipo). |
Well, I'm not quite sure what changed to make it start working, but with this package.json:
I'm getting this error:
My impression from reading http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Native%20Node%20Modules/ is that I don't need to do any special rebuilds ("In 0.14.x LTS release, native modules built by node-gyp or npm in upstream can be supported.") for this to work. What might I be doing wrong? Thanks, |
Well...I am a Mac and windows guy. So, can't help you with the Linux. Although I have been doing the development on LTS version yet I remember that the V8 has got ABI changes in 0.18.x. You'll need to rebuild your module using nw-gyp. The line that you have stated above is true for LTS version. See if this helps you. :) |
See this #5025 |
The V8 version used in NW.js 0.18.2 is different from official Node.js. You have to rebuild all native modules with |
Ok, I was able to get it to work. For future reference, here is my package.json:
(I'm grabbing the node-java out of the master branch because of a problem described in node-java #359 ). My build script is as follows:
|
Hi, I re-compiled with nw-gyp build --target=nw-version(0.22.3) |
I'm attempting to put together a simple example that demonstrates NW.js working with the node-java package. Here is my package.json file:
I have an index_plain.html file that's fairly simple, and references a sample.js file. In that sample.js file, I have this entry:
When I run nw on the index_plain.html (
node_modules/.bin/nw .
), I get this error:If I remove the require('java') line, this error goes away (but of course I can't use Java).
Why am I getting this error?
Thanks,
John
The text was updated successfully, but these errors were encountered: