Hello,
I'm trying to get node-java to work with node-webkit. I have js/main.js with this content:
var java = require("java");
var ArrayList = java.import('java.util.ArrayList');
var list = new ArrayList();
list.addSync('item1');
list.addSync('item2');
console.log(list.sizeSync());
When I run
I get the expected behavior. When I run
Webkit opens my main html file which loads and runs the above JS. I get this error:
"Uncaught Error: Module did not self-register.", source: module.js (354)
I do not get this error requiring other modules (although I do get the "require is not defined" error in the webkit console).
I do not know if this is a problem with node, node-java, or node-webkit. I'm running Mac OS X 10.9.5, node v0.10.28, npm 2.1.2. node-webkit is installed locally in my project and is 64-bit.
Thanks for any guidance.
/Daryl