Java Web Start / 用于非 GUI 控制台应用程序的 JNLP / 代码更新分发

发布于 2024-11-15 08:24:35 字数 253 浏览 5 评论 0原文

我有一个用 Java 编写的简单数据验证命令行实用程序。我们将此实用程序作为 JAR 文件分发给客户。我们的客户在其本地计算机上的数据上运行此实用程序。

由于我们经常更新此验证工具,因此如果能够使用 Java Web Start / JNLP 分发此工具,以便它们自动接收代码更新,那就太好了。

据我所知,Java Web Start 最常用于基于 Swing/UI 的应用程序。它可以用于命令行控制台应用程序吗?或者如果有其他方法可以解决这个问题,请告诉我。

I have a simple data validation command line utility that I've written in Java. We distribute this utility to our clients as a JAR file. Our clients run this utility on data in their local machines.

Since we frequently update this validation tool, it would be nice to be able to distribute this using Java Web Start / JNLP so that they receive code updates automatically.

From what I can gather, Java web start is most commonly used for Swing/UI based apps. Can it be used for command line console applications? Or if there is another way to tackle this issue, let me know.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撩发小公举 2024-11-22 08:24:35

Java Web Start 确实假设了一个 GUI 应用程序,并尽力隐藏从用户那里下载的代码。对于用户倾向于合并到自己的脚本中的命令行应用程序来说,这似乎并不合适。

也许您可以编写一个简单的 GUI 来检索最新版本的命令行 JAR 并将其放置在用户期望的位置,然后将该 GUI 放置在 JWS 中。

Java Web Start does assume a GUI app and does its best to hide the code it downloads from the users. It doesn't seem right for a command line app that users are apt to, for example, incorporate in their own scripts.

Maybe you could write a simple GUI that retrieves the latest version of your command-line JAR and puts it where your users are expecting it, and put that GUI in JWS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文