如何用jad?谢谢

albert1k 2003-09-11 08:28:31
如何用jad?谢谢
...全文
772 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
YuLimin 2003-09-12
  • 打赏
  • 举报
回复
path设置了没有啊?
比如:jad目录放在F:\java\jad目录下

那你可以将这个路径加入到系统的路径当中,然后cmd
C:\>cd YourClassPath
C:\YourClassPath\>jad -sjava *.class
即可了

或者不用设置,每次都手工加上去;)苦
C:\>path f:\java\jad;%path%
C:\>cd YourClassPath
C:\YourClassPath\>jad -sjava *.class
albert1k 2003-09-11
  • 打赏
  • 举报
回复
我有个jad.exe文件,双击之后,d:>jad abc.class 报错:'jad'不是内部或外部命令
怎么办? 谢谢
tomcatjava 2003-09-11
  • 打赏
  • 举报
回复
Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov (kpdus@yahoo.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 <dir> - 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<num> - split strings into pieces of max <num> chars (splitstr)
-lnc - output original line numbers as comments (lnc)
-nl - split strings on newline characters (splitstr)
-noconv - don't convert Java identifiers into valid ones (noconv)
-nocast - don't generate auxiliary casts
-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
-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 <pfx>- prefix for all packages in generated source files
-pc <pfx>- prefix for classes with numerical names (default: _cls)
-pe <pfx>- prefix for unused exception names (default: _ex)
-pf <pfx>- prefix for fields with numerical names (default: _fld)
-pi<num> - pack imports into one line using .* (packimports)
-pl <pfx>- prefix for locals with numerical names (default: _lcl)
-pm <pfx>- prefix for methods with numerical names (default: _mth)
-pp <pfx>- prefix for method parms with numerical names (default:_prm)
-pv<num> - pack fields with the same types into one line (packfields)
-r - restore package directory structure
-s <ext> - output file extension (default: .jad)
-space - output space between keyword (if, while, etc) and expression

-stat - show the total number of processed classes/methods/fields
-t<num> - use <num> spaces for indentation (default: 4)
-t - use tabs instead of spaces for indentation
-v - show method names while decompiling

for example:
To decompile a single JAVA class file 'example1.class'
type the following:

jad example1.class
老土豆T 2003-09-11
  • 打赏
  • 举报
回复
打开.class文件就可以了。

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧