gpt4 book ai didi

java - 使用 .jar 文件编辑 .jar 文件

转载 作者:行者123 更新时间:2023-11-29 03:45:49 25 4
gpt4 key购买 nike

我为我的 friend 写了一个更新程序来更新我为她写的另一个程序作为离别礼物。我已经编写了所有需要的代码来检索从服务器更新的类文件并将它们保存在临时内存中。我需要帮助的是让程序替换第一个 jar 文件中的类文件,这样她就不必进行手动更新。注意:主程序在更新期间没有运行,所以没有爆炸 jar 。

最佳答案

只要应用程序。有一个 GUI,使用 Java Web Start 部署它.

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' installation1 for platforms that support Java.

JWS provides many appealing features including, but not limited to, splash screens, desktop integration, file associations, automatic update2 (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..

  1. 对用户来说很容易。
  2. 自动更新是内置的,部署者所要做的就是上传新的 Jar。

关于java - 使用 .jar 文件编辑 .jar 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10963662/

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