简体   繁体   English

如何将我的 Java 桌面和 mysql 数据库应用程序放入我的网站

[英]How to put my Java desktop and mysql database application into my website

Friends, I wrote a java desktop application that stores and retrieves data from Mysql database.朋友们,我写了一个java桌面应用程序来存储和检索Mysql数据库中的数据。 I want to put the application into my website so that my Sales-Girls can log into it and save the day's sales summary directly to the database, but I don't know how to do that.我想将该应用程序放入我的网站,以便我的女销售人员可以登录并将当天的销售摘要直接保存到数据库中,但我不知道该怎么做。 Please can anyone help me out?请问有人可以帮我吗? I want to be able to monitor my three stores whenever I am out of town.我希望能够在外出时监控我的三个商店。 I will greatly appreciate answer that can help me do this.我将非常感谢可以帮助我做到这一点的答案。 Note;笔记; I don't know much about applet yet, still trying to learn more.我对applet还不是很了解,还在努力学习中。 Thanks..谢谢..

There are several options that vary in how much rework they require, the experience required of your users and whether they require the purchase of a code-signing certificate.有多种选择,它们需要多少返工、用户所需的经验以及他们是否需要购买代码签名证书。

Applets are a pain.小程序是一种痛苦。 I strongly recommend you do not bother.They are going to require some rework effort.我强烈建议你不要打扰。他们将需要一些返工。 They require a certificate for code-signing and are no longer supported by chrome with firefox support soon to go away.它们需要代码签名证书,并且 chrome 不再支持,很快就会停止支持 Firefox。

Java WebStart avoids browser support issues and would require less rework than an applet but still requires the code-signing. Java WebStart 避免了浏览器支持问题,并且比小程序需要更少的返工,但仍然需要代码签名。

The easiest solution is just zip up your desktop application, users download it, install java and run the desktop program.最简单的解决方案是压缩您的桌面应用程序,用户下载它,安装 java 并运行桌面程序。 Hopefully your "sales girls" are capable of doing that.希望您的“售货员”能够做到这一点。 No code-signing certificate may be required.可能不需要代码签名证书。 You could bundle the JRE and your application in a launcher if necessary.如有必要,您可以将 JRE 和您的应用程序捆绑在启动器中。

There are many different ways to build a Javascript/HTML client communicating with logic written in Java running on the server but they are all likely to involve a significant rewrite of your code.有许多不同的方法可以构建与服务器上运行的 Java 编写的逻辑通信的 Javascript/HTML 客户端,但它们都可能涉及对代码的大量重写。 Vaadin is probably the best option for someone familiar with swing that doesn't want to learn more HTML/Javascript than necessary. Vaadin可能是熟悉 Swing 且不想学习更多 HTML/Javascript 的人的最佳选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM