目录

  • 引用
  • 教程
  • 演示
  • jad常见用法
  • jad详细用法

引用

jad官网——下载地址
jad非官网下载地址
jad百度百科

教程

  1. 点击该链接下载用于windows的jad,适用于其他系统的jad请到jad非官网下载地址去下载
  2. 解压下载的压缩包到某路径
  3. 打开win10的cmd命令行(按键win+r)
  4. 进入到jad.exe所在的路径
  5. 输入jad example1.class。之后就会在 example1.class所在路径生成一个example1.jad文件。之后用记事本方式打开该文件,或者将example1.jad改为example1.Java,文件内容不变。
  6. 或者输入jad -sJava example1.class,反编译结果以.Java为扩展名。

演示

我的jad.exe和Test.class放在桌面。

jad常见用法

一、基本用法
Usage:jad [option(s)]
直接输入类文件名,且支持通配符,如下所示。
c:\Java>jad example1.class
c:\Java>jad *.class
结果是将example1.class反编译为example1.jad。将example1.jad改为example1.Java即得源文件。
二、Option -o
不提示,覆盖源文件
三、Option -s
c:\Java>jad -sJava example1.class
反编译结果以.Java为扩展名。
四、Option -p
将反编译结果输出到屏幕
c:\Java>jad -p example1.class
将反编译结果重定向到文件
c:\Java>jad -p example1.class>example1.Java
五、Option -o
指定反编译的输出文件目录
c:\Java>jad -o -dtest -sJava *.class

jad详细用法

Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov (jad@kpdus.com).
Usage: jad [option(s)] <filename(s)>
Options: -a - generate JVM instructions as comments (annotate)
-af - output fully qualified names when annotating
-b - generate redundant braces (braces)
-clear - clear all prefixes, including the default ones
-d

- directory for output files
-dead - try to decompile dead parts of code (if there are any)
-dis - disassembler only (disassembler)
-f - generate fully qualified names (fullnames)
-ff - output fields before methods (fieldsfirst)
-i - print default initializers for fields (definits)
-l - split strings into pieces of max chars (splitstr)
-lnc - output original line numbers as comments (lnc)
-lradix- display long integers using the specified radix
-nl - split strings on newline characters (splitstr)
-noconv - don’t convert Java identifiers into valid ones (noconv)
-nocast - don’t generate auxiliary casts
-noclass - don’t convert .class operators
-nocode - don’t generate the source code for methods
-noctor - suppress the empty constructors
-nodos - turn off check for class files written in DOS mode
-nofd - don’t disambiguate fields with the same names (nofldis)
-noinner - turn off the support of inner classes
-nolvt - ignore Local Variable Table entries (nolvt)
-nonlb - don’t insert a newline before opening brace (nonlb)
-o - overwrite output files without confirmation
-p - send all output to STDOUT (for piping)
-pa - prefix for all packages in generated source files
-pc - prefix for classes with numerical names (default: _cls)
-pe - prefix for unused exception names (default: _ex)
-pf - prefix for fields with numerical names (default: _fld)
-pi - pack imports into one line using .* (packimports)
-pl - prefix for locals with numerical names (default: _lcl)
-pm - prefix for methods with numerical names (default: _mth)
-pp - prefix for method parms with numerical names (default:_prm)
-pv - pack fields with the same types into one line (packfields)
-r - restore package directory structure
-radix- display integers using the specified radix (8, 10, or 16)
-s - output file extension (default: .jad)
-safe - generate additional casts to disambiguate methods/fields
-space - output space between keyword (if, while, etc) and expression
-stat - show the total number of processed classes/methods/fields
-t - use spaces for indentation (default: 4)
-t - use tabs instead of spaces for indentation
-v - show method names while decompiling
-8 - convert Unicode strings into ANSI strings (ansi)
-& - redirect STDERR to STDOUT

Java反编译工具 jad安装及使用的指南相关推荐

  1. Java反编译工具JAD的安装与简单使用

    jad介绍 jad 是一个使用非常广泛的 Java 反编译工具.可以将java编译后的class文件反编译成对应的java文件. 下载地址 JAD下载地址,点击跳转https://varaneckas ...

  2. Java反编译工具Jad详解

    Jad(JAva Decompiler)是一个Java的反编译器,可以通过命令行把Java的class文件反编译成源代码. 如果你在使用编写代码的时候遇到找不到源代码的第三方库,而且你又需要看看这个库 ...

  3. java反编译工具jad和jd-gui使用

    1.jad下载地址 http://www.javadecompilers.com/jad 2.jad配置环境变量 解压下载好的压缩包,可以得到一个jad.exe 文件. 配置环境变量主要目的是你可以全 ...

  4. java 反编译工具Jad使用教程

    一.Jad 介绍和下载地址 JAD是使用Microsoft Visual C++开发的,运行速度非常快,可以处理很复杂的JAVA编译文件.众多的参数使JAD可以灵活应付多种加密手段,令反编译的代码更加 ...

  5. java反编译工具怎么安装_java反编译工具Jode Decompiler的Eclipse插件安装与使用

    Jode Decompiler的安装: 安装非常的简单,在ECLIPSE上的help => Software Updates => Find and Install... => Se ...

  6. 7 款开源 Java 反编译工具

    7 款开源 Java 反编译工具 今天我们要来分享一些关于Java的反编译工具,反编译听起来是一个非常高上大的技术词汇,通俗的说,反编译是一个对目标可执行程序进行逆向分析,从而得到原始代码的过程.尤其 ...

  7. 介绍一款特别好用的java反编译工具jd-gui

    目录 写在前面 开始 写在前面 之前用过另一款java反编译工具jad 但是这个工具有个问题就是对于一些java8的新特性,比如lambda表达式是解析不出来的,更不用说java9和java17了.关 ...

  8. java的class文件反编译工具jad的应用

    java的class文件反编译工具jad的应用 JAD用法具体用法: http://www.kpdus.com/jad.html  官方最新版本,支持jdk1.6 Java下的一个简单易用的反编译工具 ...

  9. java反编译jad_java反编译工具jad

    Java下的一个简单易用的反编译工具jad, 可以很方便的将.class反编译为.Java. 点击下载 一.基本用法 Usage:jad [option(s)] 直接输入类文件名,且支持通配符,如下所 ...

最新文章

  1. 计算机视觉 | YOLO开源项目汇总
  2. 帖子删除显示帖子名称?
  3. 安装php报错误2356,linux下Mysql+php5+apache安装手记
  4. dfs——练习demo3(20届周新杰提供)
  5. R语言与概率统计(四) 判别分析(分类)
  6. c语言 增删查 案例,C语言实现单链表的增删查改
  7. php7 关联nginx,nginx+php7配合开发
  8. inuri .php id=,php常用函数(遇见就补充)
  9. 图像分割总体介绍——深度AI科普团队
  10. 7-323 逆波兰表达式 (10 分)
  11. springMVC4(4)json与对象互转实例解析请求响应数据转换器
  12. 【python】Mac在Pycharm中导入python3.6(简单易行)
  13. 350.两个数组的交集II
  14. arduino环境下用ESP32连接PS2手柄
  15. 最短路算法——Floyd-Warshall(题目练习解析)
  16. 数据库进阶(1)——MySQL架构(1)
  17. 【头歌C语言程序与设计】结构体
  18. 单元测试框架NUnit 之 constraints 约束
  19. MySQL日志双一配置分析实战
  20. 我们每天自律、认真学习的最终目的是什么?

热门文章

  1. unity shaderlab Blend操作
  2. 《计算机网络——谢希仁》学习笔记(6)~~第二章 2.3 2.4 2.5
  3. 【已阅】man,cp,mv,alias,more,less,head,tail指令与文件片段读取和管道的初步介绍
  4. 图片链接转base64
  5. LaTeX参考文献引用显示?问号解决办法!!!!
  6. 骰子点数识别之图像分割
  7. Vagrant Boxs
  8. 【正点原子FPGA连载】 第二十四章 RTC实时时钟LCD显示实验-摘自【正点原子】领航者ZYNQ之FPGA开发指南_V2.0
  9. 各种SSD SMART 信息 转
  10. 大数据系列——Redis理论