亲爱的编码员, 我正在实现一个基于浏览器的应用程序,该应用程序可以访问某些本机c ++调用运行时.我在浏览器上使用Http,并使用Java脚本和JNI调用本机c ++. 到目前为止,只有使用野生动物园浏览器,我才能获得某种程度的成功. 有人可以启发我为什么这在其他浏览器中不起作用,或者我应该考虑解决此问题的原因吗? 另外,我的本机呼叫使用了一些第三方dll和OpenGL,并且所有这些都是动态加载的! 谢谢与问候, Anoop SL
Dear Coders, I''m implementing a browser based application which accesses some native c++ calls runtime. I''m using Http at browser and calling my native c++ using java script and JNI. So far I''m successful to some degree only with safari browser. Can somebody enlighten me on why this is not working in other browsers or to what I should look into to resolve this behavior? Also my native call uses some 3rd party dll''s & OpenGL and all are loaded dynamically! Thanks & Regards, Anoop SL
推荐答案浏览器内部使用的JVM被沙盒化".他们限制了浏览器外部的访问,以防止恶意代码损坏客户端计算机. 如果您仍在调用外部进程时遇到问题,建议您在浏览器中检查支持第三方dll的要求.通常的方法是只能调用已签名的可执行文件.但是,Safari可能也允许本地生成的dll. The JVM used inside a browser are ''sandboxed''. They have restricted access outside of the browser to prevent malicious code damaging the client machine. If you are [still] experiencing problems with calling your external processes, I would recommend checking the requirements for supporting third party dll''s in the browser. The normal approach is that only signed executables can be called. However safari may well allow locally built dll''s as well.
更多推荐
@浏览器无法使用
发布评论