Nuxeo JS client : is it possible to use it in java 8 Nashorn console?
I'd like to use nuxeo.js in Nashorn javascript engine. The advantage is that it doesn't require to install node.js and can be used on any java8 VM console.
The problem is that nuxeo.js requires jQuery, and trying to load jQuery requires browser environment (like “window” object).
Any solution? What do you think about this approach? Thanks.
0 votes
1 answers
5990 views
http://www.nuxeo.com/blog/nodejs-nuxeo-client/
jjs> load('node/nuxeo.js'); node/nuxeo.js:1 ReferenceError: "require" is not defined
loading "lib/jquery/nuxeo.js" succeeds, but fails later when executing client connect.
http://blog.jonasbandi.net/2014/03/running-nodejs-applications-on-jvm-with.html