I would like to embed spidermonkey engine calls in my C# (or C++) console app using VS2010, so I can send some values from C# code to the javascript functions and get the result back, but I don't know where and how to start.
Till now I have downloaded the spidermonkey source code and compiled it using mozilla-build tools. Now I am able to start js shell, load my .js file, run javascript functions inside it and get correct results.Than I created win32 C++ console app in VS2010, added js.lib and header files from my dist/include folder to project. Tried with simple example to start it up and really it builds with no errors (after only 3 days of trying) but on Run it throws system error - "Can't start because js.exe is missing from your computer."