问题
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