在对其进行一些修改后创建一个jar文件 [英] Creating a jar file after doing some modifications to it

查看:118
本文介绍了在对其进行一些修改后创建一个jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了bouncycastle.jar文件,将X509Util.class从私有更改为公共
现在我想再次收到jar,怎么能重新创建jar。

I have downloaded bouncycastle.jar file changed the X509Util.class from private to public now i want to recerate the jar again how can ito recreate the jar.

推荐答案

这取决于它有多复杂。在大多数情况下,您只需重新压缩所有内容并将zip文件扩展名重命名为 .jar 。如果有清单文件,请务必先包含清单文件。 JDK还提供了一个用于创建jar文件的命令行工具。

It depends on how complicated it is. In most cases you can just rezip everything and rename the zip file extension to .jar. Be sure to include the manifest file first if there is one. The JDK also provides a command line tool for creating jar files.

如果正在修改的代码已签名,那么使用签名重新创建jar显然是不可能的。

If the code being modified was signed, then recreating the jar with signatures will obviously be impossible.

这篇关于在对其进行一些修改后创建一个jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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