We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I want to call a node.js script from within Processing on OSX.
I have tried
launch ("node test.js");
but it doesn't seem to launch.
Any idea how to make this work?
Dunno much about how to pull launch() out, sorry. :-<
But just wanted you to know that Java already got a built-in JS interpreter called Nashorn.
And if you got Java JDK installed, its corresponding interpreter is called "jjs.exe".
You can take a look at my experiments w/ Nashorn below: :ar!
Thanks, I think my project needs to be Node due to the 3rd party packages i'm using. Good to know about the JS interpreter though.
You should launch the node server before the sketch, and communicate with it through HTTP, or even OSC