Skip to content

Instantly share code, notes, and snippets.

@zh4n7wm
Created October 20, 2019 12:53
Show Gist options
  • Select an option

  • Save zh4n7wm/8cdad2c5bba850e440ecb1217f0a7902 to your computer and use it in GitHub Desktop.

Select an option

Save zh4n7wm/8cdad2c5bba850e440ecb1217f0a7902 to your computer and use it in GitHub Desktop.
Java逆向工程

Java 逆向工程

Java反编译

注:反编译后的 java 代码只能阅读来查看代码逻辑,不能保障能再通过 javac 编译会 class

编译 class

  • javac 命令行直接编译
  • IDE 工具来编译

打包新 jar

将编译好的 *.class 文件打包到 *.jar,命令: jar uf XXX.jar /path/to/class-name.class

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment