问题描述
我需要创建一个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:
- 光 - 简约和用户友好的框架(Java + JavaScript)
- 高效 - 在旧电脑上工作并快速工作
- 开发者友好 - 我很乐意写下它;)
所以我的问题是:
- 您对选择组件有什么建议吗?
- 什么框架,什么是混淆器?
- 您对将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?
推荐答案
也许你可以看一下。您可以编写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页面。如果您随后,那么它真的会看起来像桌面应用程序;)
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应用程序作为桌面应用程序,我应该选择哪些框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!