日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > java >内容正文

java

java jad_Java反编译工具 jad安装及使用的指南

發(fā)布時(shí)間:2024/8/1 java 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java jad_Java反编译工具 jad安装及使用的指南 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

引用

教程

解壓下載的壓縮包到某路徑

打開win10的cmd命令行(按鍵win+r)

進(jìn)入到j(luò)ad.exe所在的路徑

輸入jad example1.class。之后就會(huì)在 example1.class所在路徑生成一個(gè)example1.jad文件。之后用記事本方式打開該文件,或者將example1.jad改為example1.Java,文件內(nèi)容不變。

或者輸入jad -sJava example1.class,反編譯結(jié)果以.Java為擴(kuò)展名。

演示

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

jad常見用法

一、基本用法

Usage:jad [option(s)]

直接輸入類文件名,且支持通配符,如下所示。

c:\Java>jad example1.class

c:\Java>jad *.class

結(jié)果是將example1.class反編譯為example1.jad。將example1.jad改為example1.Java即得源文件。

二、Option -o

不提示,覆蓋源文件

三、Option -s

c:\Java>jad -sJava example1.class

反編譯結(jié)果以.Java為擴(kuò)展名。

四、Option -p

將反編譯結(jié)果輸出到屏幕

c:\Java>jad -p example1.class

將反編譯結(jié)果重定向到文件

c:\Java>jad -p example1.class>example1.Java

五、Option -o

指定反編譯的輸出文件目錄

c:\Java>jad -o -dtest -sJava *.class

jad詳細(xì)用法

Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov (jad@kpdus.com).

Usage: jad [option(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

總結(jié)

以上是生活随笔為你收集整理的java jad_Java反编译工具 jad安装及使用的指南的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。