Is it possible to load a runtime shared library into JavaScript and use it -


Is it possible to load runtime shared libraries in JavaScript and to use it? Is there a safety concern about allowing loading of a .so file?

In a web browser? I think it is impossible.

Server-side programming (eg node.js) is probably possible. Not sure about this

Well Java can sth like this

  ScriptEngineManager manager = new ScriptEngineManager (); ScriptEngine Engine = manager.getEngineByName ("JavaScript"); String js = "var t =" + someJNIMethod () + ";" Engine.eval (js);  

This is not practical, but possible.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -