自动更新java应用程序 [英] Auto update java application

查看:226
本文介绍了自动更新java应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建将从网上免费下载的Java应用程序。我想添加自动更新功能,以防修复错误或增强应用程序。对于自动更新,我将程序分为3个单位。


  1. 基础 - 非常小的代码,将检查新版本的第二个单位(上传器)更新并运行它

  2. 上传者将检查项目的新更新并下载任何更新并运行

  3. 主程序 - 这包含主应用程序并包含所有模块。

我以上两个原因:


  1. 如果有任何更新,我不希望客户端重新启动应用程序

  2. 由于应用程序仍然是新的,我不想在任何问题用户将无法运行或更新应用程序,因此Base非常小,几乎没有错误。

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

解决方案


Java Web Start (JWS)是Oracle Corporation te用于直接从网络或互联网链接发起富客户端(Swing,AWT,SWT)桌面应用程序的科学。它为支持Java的平台提供一键式安装。



JWS提供了许多吸引人的功能,包括但不限于启动屏幕,桌面集成,文件关联, strong>自动更新(包括懒惰下载和更新的编程控制), 本地&通过平台,架构或Java版本的其他资源下载,运行时环境的配置(最小J2SE版本,运行时选项,RAM等),使用扩展轻松管理常用资源。



I am building Java application that will be downloaded for free from the web. I want to add an auto update feature in case of fixing bugs or enhancing the application. For auto update I split my program to 3 units.

  1. Base - very small code that will check for new version of second unit(Uploader) update it and run it
  2. Uploader will check for new update of the project and download any update and run it
  3. Main program- this contains the main application and contains all modules.

I did above for 2 reasons:

  1. I don't want the client to restart the application in case of any update
  2. As the application still new I don't want to have any problem where user will not be able to run or update the application, so the Base is very small and it hardly has errors.

Is there a common Java method/third party to do the auto update?

解决方案

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应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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