Gwt:作为桌面应用程序运行 [英] Gwt: Run as desktop application

查看:91
本文介绍了Gwt:作为桌面应用程序运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们决定使用 Ext GWT 编写客户端应用程序,它是一个功能强大的框架,但目前客户想要创建桌面应用程序,所以,我的问题是有任何解决方案启动GWT应用程序作为桌面?
PS我发现有一个项目调用 gwt-in-the-空气,但需要专业人士的意见:)
谢谢。

解决方案

根据您的需要,您应该能够将GWT应用程序作为Adobe AIR或Appcelerator Titanium Desktop应用程序进行打包,而无需进行任何修改。

IIRC,在 com.google.gwt上只有一小部分修补程序/覆盖.xhr.client.XMLHttpRequest 因为它使用在Adobe AIR中禁止的 new Function()(我不能告诉Titanium)。



还有Prism或XULRunner(由Flickr Uploader IIRC使用)。

如果您需要特定于桌面环境(访问文件系统等),如果您不喜欢GPL或商业许可证,那么 gwt-in-the-air 可能是一个好开始,并且准备修复一些错误。 gwt-in-the-air将停止使用。一个fork仍然是以gwt4air命名的(GPLv3 / commercial,并且有很多更多的功能)。
但除非你需要这些特性的许多,那么在GWT中的JSNI中编码它们也不应该那么困难。



这个答案来自gwt-in-the-air的作者(他已经放弃了基于HTML5的网络应用的桌面应用程序,具有几乎相同的功能集和更简单/更好的应用程序更新过程;这就解释了为什么gwt在空中已经死了。)


We decided to write client side application using Ext GWT it is good and powerful framework, but currently client wants to create desktop application, So, my question is Are there any solutions to start GWT application as Desktop? P.S I've found one project calls gwt-in-the-air but want opinion of professionals :) Thanks.

解决方案

Depending on your needs, you should be able to package a GWT app as an Adobe AIR or Appcelerator Titanium Desktop application without any modification.
IIRC, there's only a small patch/override to do on com.google.gwt.xhr.client.XMLHttpRequest because it uses new Function() which is forbidden in Adobe AIR (I can't tell for Titanium).

There's also Prism or XULRunner (used by the Flickr Uploader IIRC).

If you need anything specific to the desktop environment (access to the filesystem, etc.), then gwt-in-the-air can be a good start if you don't like GPL or commercial licenses and are ready to fix a few bugs. gwt-in-the-air is discontinued. A fork is still live (GPLv3/commercial, and with a whole lot more features) under the name gwt4air. But unless you need many of these features, then coding them in JSNI within GWT shouldn't be that hard either.

This answer is from the author of gwt-in-the-air (who has abandoned desktop apps for HTML5-based web apps, with almost the same feature-set and easier/better application update process; and that explains why gwt-in-the-air is dead.)

这篇关于Gwt:作为桌面应用程序运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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