如何打开JAR文件并在文件类中编辑一些东西并再次创建JAR文件? [英] how can open JAR file and editing some thing inside file class and create JAR file again ?

查看:73
本文介绍了如何打开JAR文件并在文件类中编辑一些东西并再次创建JAR文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何打开JAR文件并在文件类中编辑一些东西并再次创建JAR文件?

how can open JAR file and editing some thing inside file class and create JAR file again ?

推荐答案

1)更改java文件并将其编译为将其转换为类文件。

2)使用winzip或7-zip打开一个jar文件。

3)将已更改的类拖放到这个打开的JAR文件中的正确位置。此步骤将替换旧的类文件。

4)保存更改。



请注意这可以在开发环境中完成,不建议用于生产/ UAT环境。



干杯,

Sudhakar
1) Make changes to your java file and compile it to convert it into a class file.
2) Open a jar file using winzip or 7-zip.
3) Drag and drop your changed class in this opened JAR file to its proper location.This step will replace the old class file.
4) Save the Changes.

Please note this can be done for development environment and not recommended for production/UAT environment.

Cheers,
Sudhakar


你不能,除非你有源代码,或者你是编辑类文件的专家。
You can''t, unless you have the source code, or you are expert at editing class files.


这篇关于如何打开JAR文件并在文件类中编辑一些东西并再次创建JAR文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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