通过使用Rhino或标准内置JavaScript支持在Java中嵌入JavaScript,从而在客户端使用Google Channel API? [英] Using Google channel api on the client side by embedding javascript in java using rhino or standard inbuilt javascript support?

查看:93
本文介绍了通过使用Rhino或标准内置JavaScript支持在Java中嵌入JavaScript,从而在客户端使用Google Channel API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在做实验,我想知道是否有可能(如果可能的话,我应该怎么做?)创建一个桌面客户端,该客户端将使用Rhino或仅内置库使用Java中嵌入的javascript(还是犀牛)成功打开并维护Google App Engine的Channel API实例?

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?

推荐答案

虽然可能,但难度很大. javascript库希望在浏览器中运行,因此希望DOM之类的东西可用.您可能必须提供其中的部分或全部内容才能使其运行.

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.

这篇关于通过使用Rhino或标准内置JavaScript支持在Java中嵌入JavaScript,从而在客户端使用Google Channel API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆