Java Web应用程序作为桌面应用程序,我应该选择哪些框架? [英] Java web app as desktop app, which frameworks should I choose?

查看:528
本文介绍了Java Web应用程序作为桌面应用程序,我应该选择哪些框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个Web应用程序,我可以在客户端PC上安装为桌面应用程序(数据库,jetty + war,firefox / chrome / sth portable)。

I need to make a web app that I would be able to install as a desktop application on a client PC (database, jetty+war, firefox/chrome/sth portable).

该应用程序是一个非常大的搜索应用程序(我必须使用Lucene)。只有少数屏幕,搜索队列中的一些依赖项等。

The application is a quite big search app (I MUST use Lucene). There are only few screens, some dependencies in search queue, etc.

现在我需要帮助选择正确的组件。申请必须是:

Now I need help in choosing correct components. Application must be:


  1. 光 - 简约和用户友好的框架(Java + JavaScript)

  2. 高效 - 在旧电脑上工作并快速工作

  3. 开发者友好 - 我很乐意写下它;)

所以我的问题是:


  • 您对选择组件有什么建议吗?

  • 什么框架,什么是混淆器?

  • 您对将Web应用程序设置为桌面应用程序有何评论?

  • 主要风险是什么?

  • Do you have any suggestions about choosing components?
  • What frameworks, what obfuscator?
  • Do you have any comments about making a web application a desktop application?
  • What are the main risks?

推荐答案

也许你可以看一下 Google的GWT 。您可以编写Java代码,然后将其编译为JavaScript。使用它感觉就像使用桌面应用程序。 Gmail,Google Wave,...已使用此技术创建。

Maybe you could take a look at Google's GWT. You can write Java code and it will then "compile" it to JavaScript. Using it feels like using a desktop app. Gmail, Google Wave,... have been created using this technology.

我认为您甚至不需要网络服务器,但编译结果是纯JavaScript +静态HML页面。如果您随后创建Chrome应用程序快捷方式,那么它真的会看起来像桌面应用程序;)

I think you don't even need a webserver, but the compiled result is pure JavaScript + static HML pages. If you then create a Chrome application shortcut it'll really look like a desktop app ;)

唯一的问题是学习曲线最初会有点陡峭,但如果你渴望学习,那么它真的很酷你可以轻松管理它。

The only thing is that the learning curve will be a bit steep initially but if you're eager to learn, then it's really cool stuff and you can manage it easily.

这篇关于Java Web应用程序作为桌面应用程序,我应该选择哪些框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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