java

执行jar 包提示错误

反编译jar 出现如下错误:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

升级 java 版本至 11 以上即可

经典反编译cli

java-decompiler.jar

配合 IDA 的 插件 在 windows 下执行

  • PATH_TO_IDA 指代 IDA 的绝对路径
  • 盘符自定义
  • 第二个参数指定包名
  • 后面加 需要被反编译的包名称、输出路径
java -cp "C:\{PATH_TO_IDA}\plugins\java-decompiler\lib\java-decompiler.jar"  org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true xxx-2021.7.1.jar  "D:\package\decompile"

评论暂时关闭了,可以过段时间再试