是否有可能使用Java后端和放大器来创建桌面应用程序; Web技术UI [英] Is it possible to create Desktop Application using Java backend & Web Technologies UI

查看:209
本文介绍了是否有可能使用Java后端和放大器来创建桌面应用程序; Web技术UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Java中创建和放大器的桌面应用程序; Web技术。选择Java的主要原因是,它是免费的,开源的,因此我们的投资将是最小的,我们会节省大量的投资相对于许可费用等。此外,选择Web技术最主要的原因是因为我们目前的程序员以及与网络技术,如HTML,CSS,Ajax的熟悉,我们有在网络技术创造惊人的UI很好的经验。

I would like to create a desktop application in Java & web technologies. The main reason for selecting Java is that it is free, open source, and hence our investment would be minimal and we would save lots of investment with respect to licensing costs, etc. Also, the main reason for selecting web technologies is because our current programmers are well versed with web technologies like HTMl, css, Ajax, and we have good experience in creating amazing UI in web technologies.

我会给你,我们想创造的软件的一些想法。这将是一个基于桌面的软件,即像一个ERP软件。

I will give you some idea about the software that we would like to create. It would be a desktop based software, namely something like an ERP software.

的关键要求是,应该有一个伟大的UI,它应该是快速的,而不是非常耗费资源。

The key requirements are that there should be a great UI and it should be fast and not very resource intensive.

我听说,实现一个伟大的图形用户界面是可能的,但难在Java中。这是可以做到,但很复杂,而这是pretty简单做同样在Visual Studio,微软的产品。

I have heard that implementing a great GUI is possible, but difficult in Java. It can be done but is complex, whereas it is pretty simple to do the same in Visual Studio, Microsoft products.

我还检查Adobe AIR中,诺基亚QT等,但他们都是pretty贵为我们,我们使用的是Java技术寻找前端浏览器的用户界面和后端嵌入式服务器/数据库。

I have also checked Adobe Air, Nokia QT, etc but they all are pretty expensive for us and we are looking for front-end browser UI and backend embedded server/database using java technologies.

是否有可能创造一个用户界面是使用Web技术创建并有嵌入服务器(如码头或Tomcat)和数据库和后端的编程是Java中的桌面软件。如何JavaFX的融入这个?

Is it possible to create a desktop software in which the UI is created using the web technologies and there is an embedded server (like jetty or tomcat) and database and the backend programming would be in Java. How does JavaFX fit into this?

所以基本上,桌面应用程序将有一个嵌入式浏览器(Mozilla或一些Java的浏览器可与软件打包在一起),但最终用户不应该意识到这一点。

So basically, the desktop application would have an embedded browser (mozilla or some java browser which can packaged with the software), but the end user should never realize this.

我期待着得到差不多的反馈。能否请你提供在类似Java的+网络技术相结合,创造了软件的一些例子。

I look forward to getting feedback about the same. Can you please provide some examples of software created in a similar combination of java + web technologies.

我也研究一些软件一样PulpTunes&安培; Zimbra公司这是沿着类似的路线,但他们似乎被连接到互联网来显示数据。我们的软件将完全离线桌面应用程序。

I did study some softwares like PulpTunes & Zimbra which were along similar lines, but they seem to be connecting to internet to display data. Our software would be totally an offline desktop application.

推荐答案

首先,它是可能的。如果您正在寻找例如,检查 http://wiki.eclipse.org/Hudson-ci/Meet_Hudson
如果你深入到他们的code可以得到基本的架构。它不使用任何嵌入式数据库。
你是说你的应用程序将永远处于脱机状态,在这种情况下,我建议你去使用类似Eclipse插件开发技术,纯净的桌面应用程序。

First of all, it is possible. If you are looking for example, check http://wiki.eclipse.org/Hudson-ci/Meet_Hudson. You can get basic architecture if you dig into their code. It does not use any embedded db. You are saying your application will always be offline, in that case I suggest you to go for pure desktop application using technologies like Eclipse plugin development.

如果你已经打定了主意,这里有几点可以帮助你根据我有类似的应用经验,

If you already made up your mind, here are some points that can help you based on my experience with similar application,


  1. 虽然您的应用程序脱机(我假设,你的应用程序不需要连接到任何服务器用于任何用途的情况下,但用户机器可以访问互联网),您需要提供的HTML或JSP更改(例如,更改页)/ bug修复透明的最终用户。 JNLP / Java Web Start的是非常适合这一点。

  1. Although your application is offline(I assume, your application need not connect to any server for any use case but the user machine can access internet ), you need to deliver changes(for example, change in html or jsp page )/bug fixes transparently to end user. JNLP/Java web start is a good fit for this.

如果你要安装的JNLP方式,你发射器应在最终用户的机器照顾嵌入式数据库的安装和端口(这是很大的问题比它出现)。

If you are going for JNLP way of installing, you launcher should take care of embedded db installation and ports at the end user machine(this is big problem than it appears).

此外,如果您是通过JNLP启动服务器(在我的情况,码头),你会碰到由于权限问题类加载错误。要通过ppared服务器code掏$ P $。我已经很久以前完成它,我没有code现在指向准确的问题。

Also if you are launching server(in my case, Jetty) through JNLP, you will come across Class loading errors due to permission issues. Be prepared to dig through server code. I have done it long time ago and I do not have code now to point exact issues.

在安装过程中,你的应用程序在启动时显示进度条。你的战争部署需要一些时间,用户需要知道的一些应用是启动正在进行中。最后你会写一些摇摆UI。

Show progress bars during installation process and during your application startup. Your war deployment takes some time and user needs some of knowing that application is startup is in progress. You will end up writing some swing UI.

在用户系统中的默认浏览器自动将应用程序之后,应用程序启动的启动URL。你不需要嵌入browser.Check的http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/.

Launch URL of the application automatically in default browser of the user system, after application startup. You do not need embedded browser.Check http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/.

这篇关于是否有可能使用Java后端和放大器来创建桌面应用程序; Web技术UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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