gpt4 book ai didi

java - 自动更新java应用程序

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:14:00 25 4
gpt4 key购买 nike

我正在构建将从 Web 免费下载的 Java 应用程序。我想在修复错误或增强应用程序的情况下添加自动更新功能。对于自动更新,我将我的程序分成 3 个单元。

  1. 基础 - 非常小的代码,将检查第二个单元( uploader )的新版本更新并运行
  2. Uploader 将检查项目的新更新并下载任何更新并运行它
  3. 主程序 - 这包含主应用程序和所有模块。

我这样做有两个原因:

  1. 我不希望客户端在发生任何更新时重新启动应用程序
  2. 由于应用程序仍然是新的,我不希望出现用户无法运行或更新应用程序的任何问题,因此 Base 非常小,几乎没有错误。

是否有通用的 Java 方法/第三方来进行自动更新?

最佳答案

Java Web Start (JWS) is the Oracle Corporation technology used to launch rich client (Swing, AWT, SWT) desktop applications directly from a network or internet link. It offers 'one click' installation for platforms that support Java.

JWS provides many appealing features including, but not limited to, splash screens, desktop integration, file associations, automatic update (including lazy downloads and programmatic control of updates), partitioning of natives & other resource downloads by platform, architecture or Java version, configuration of run-time environment (minimum J2SE version, run-time options, RAM etc.), easy management of common resources using extensions..

关于java - 自动更新java应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16028488/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com