Using Google channel api on the client side by embedding javascript in java using rhino or standard inbuilt javascript support?

懵懂的女人 提交于 2019-12-25 03:54:54

问题


I am just experimenting about and I want to know whether it will be possible (and if possible how should I go about it?) to create a desktop client which will use javascript embedded in java using rhino or simply the inbuilt libraries(which are rhino again anyway) to successfully open and maintain an instance of the Channel API for google app engine?


回答1:


It's probably possible, but only with a great deal of difficulty. The javascript library expects to be run in a browser, so it expects things like the DOM to be available; you may have to provide some or all of this in order to get it to run.



来源:https://stackoverflow.com/questions/8120203/using-google-channel-api-on-the-client-side-by-embedding-javascript-in-java-usin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!