简体   繁体   English

如何将jar(或文件夹)中的所有.class文件一次更改为.java(或.txt)?

[英]How can I change all .class files in a jar(or folder) to .java (or .txt) at once?

I have always used this to decompile any .class file to readable format. 我一直使用来将任何.class文件反编译为可读格式。 However, now I need to change around 30-40 .class files to readable format to push to my github. 但是,现在我需要将大约30-40个.class文件更改为可读格式,以推送到我的github。 How may I change all the .class files to readable (.java or .txt) at once? 如何将所有.class文件一次更改为可读(.java或.txt)?

  1. JAR (or ZIP) all the classes you want decompiled together. JAR(或ZIP)所有要反编译的类。
  2. Launch JD-GUI and open your jar (zip) archive. 启动JD-GUI并打开您的jar(zip)档案。
  3. Use "File" - "Save JAR Sources" menu option. 使用“文件”-“保存JAR源”菜单选项。 It will decompile everything from your archive and save their sources into another zip file. 它将反汇编档案中的所有内容并将其来源保存到另一个zip文件中。

You would then need to unzip the ZIP file, and add it to a git repo before push. 然后,您需要解压缩ZIP文件,然后将其添加到git repo中,然后再进行推送。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在Tomcat上将相同Java包的类文件拆分为jar文件和classes文件夹吗? - Can I split class files of same java package into jar file and classes folder on Tomcat? Java - 读取文件夹中的所有.txt文件 - Java - Read all .txt files in folder 如何将.class文件转换为.jar文件中的.java文件 - How to convert all .class files into .java file from a .jar file 如何在Java的特定程序包中获取所有Class文件? - How can I get all Class files in a specific package in Java? 如何计算JAR中文件夹中的文件数? - How can I count the number of files in a folder within a JAR? 如何一次更改class的所有实例的实例变量,Java - How to change an instance variable of all instances of a class at once, Java 如何使用 Maven 将所有必需的 JAR 文件放在最终 JAR 文件内的库文件夹中? - How do I put all required JAR files in a library folder inside the final JAR file with Maven? 如何让Eclipse将.class文件存储在我存储.java源文件的Project文件夹之外的文件夹中? - How can I get Eclipse to store .class files in a folder outside the Project folder where I store the .java source files? 如何使用以下命令行在类 UNIX 中执行 jar 文件:java -jar mysolution.jar &lt; inputfile.txt - How can I execute jar file in UNIX-like using this command line: java -jar mysolution.jar < inputfile.txt 如何一次将Java类中的所有变量初始化为零 - How can is initialize all variables in a Java class at once to zero
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM