- 浏览: 2838138 次
- 性别:
- 来自: 武汉
文章分类
- 全部博客 (1173)
- 名言警句 (5)
- 心情随笔 (50)
- 数据库 (57)
- Java基础 (241)
- J2EE框架 (91)
- 数据结构 (12)
- 程序设计 (21)
- WEB技术 (128)
- 网络日志 (12)
- IT资讯 (247)
- linux (64)
- solaris (2)
- 其它 (143)
- WebService (4)
- 日语学习 (2)
- 机器人 (5)
- Android (5)
- cgywin (3)
- Game (1)
- DWR (1)
- spring (8)
- canvas (1)
- Guava (3)
- Modbus (5)
- 测试 (6)
- mongodb (9)
- Quartz (2)
- Cron (1)
- windows (2)
- 持续集成 (1)
- bootstrap (3)
- 结对编程 (1)
- nodejs (1)
- Netty (1)
- 安全 (3)
- webstorm (2)
- sparkline (1)
- Job (1)
- git (3)
- Maven (3)
- knockout (5)
- jquery (1)
- bower (1)
- docker (1)
- confluence (4)
- wiki (1)
- GoogleMap (1)
- jekyll (10)
- ruby (2)
- npm (3)
- browserify (1)
- gulp (3)
- openwrt (1)
- discuz (3)
- 输入法 (1)
- JPA (1)
- eclipse (2)
- IntelliJ (1)
- css (1)
- 虚拟机 (1)
- 操作系统 (1)
- azkaban (2)
- scrum (1)
最新评论
-
pangxiea_:
你好, 想请问一下 Linux下 这么使用rxtxcomm 在 ...
使用Java进行串口通信 -
abababudei:
请教一下,这个您是怎么解决的:/dev/ttyS2enteri ...
Java应用程序的MODBUS通讯 -
xuniverse:
hannibal005 写道楼主,我问下 request.se ...
用javascript与java进行RSA加密与解密 -
atxkm:
找了一下午,终于找到了
gulp 拷贝文件时如何移除文件目录结构 -
kalogen:
gtczr 写道非常感谢,经过我自己的修改,已经完美实现。发出 ...
用javascript与java进行RSA加密与解密
Jad调用参数如下:
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) -lradix<num>- 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 <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 -radix<num>- display integers using the specified radix (8, 10, or 16) -s <ext> - 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<num> - use <num> 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
部分参数解释如下:
-8:
把Unicode编码的字符转换成ASCII输出,这样程序中的中文就会原样输出,而不是令人费解的uxxxx这种形式
-nl:
把字符串按照
切分输出,这样很长的字符串也不至于都放在一行,增强了可读性。
JAVA手机网[www.cnjm.net]
-ff:
把数据成员放在方法之前,这样就符合大家写程序的习惯了
-space:
在if, while等关键字和表达式之间加入空格,这是java的良好编程风格
-nonlb:
不在开大括号(也就是左大括号)前加回车,这是大部分java程序员的习惯风格,大家可以根据自己的习惯选用
经过这样的配置,jad输出的java代码几乎跟手写的没有什么两样
具体我的示例如下:
在DOS下进入jad目录后,敲入:
D:\My Document\download\jad>jad -d D:\java -ff -nl -space -8 -nonlb -r -s java E:\vbao\WEB-INF\classes\com\sztelecom\vbao\**\*.class
- jad.zip (197.8 KB)
- 描述: Jad v1.5.8f
- 下载次数: 174
评论
2 楼
sunxboy
2008-11-05
我也遇到跟你一样的情况。
其实改一下也不麻烦的。
其实改一下也不麻烦的。
1 楼
neoscript
2008-11-03
源代码中Logger.getLogger(Some.class)这样的代码,被反编译成如下格式:
Logger.getLogger(com/dep/Some)。
有没有什么参数可以保持原来的格式吗?
Logger.getLogger(com/dep/Some)。
有没有什么参数可以保持原来的格式吗?
发表评论
-
高级Java程序员值得拥有的10本书
2015-05-04 07:24 776Java是时下最流行的编程语言之一。市面上也出现了适合初学者 ... -
深入理解java异常处理机制
2015-01-30 09:30 12961. 引子 try…catch…fi ... -
java 运行时参数设置
2015-01-07 09:13 835JVM的运行时参数: -Xms为执行单元内存的1/4, ... -
每个Java开发者都应该知道的5个JDK工具
2014-12-29 12:37 1114JDK是Java语言的软件开 ... -
使用双重锁判定可以大幅降低锁的征用
2014-12-29 12:30 718class ObjInstance { //单例 pri ... -
MAVEN Scope使用说明
2014-11-24 09:40 724在Maven的依赖管理中,经常会用到依赖的scope设置。这 ... -
Spring4 quartz job xml configuration
2014-11-11 09:46 14141. 定义job details public ... -
Add items into list in one line using guava
2014-11-10 10:54 699//@formatter:off fina ... -
配置动态读取(变化)文件 in Spring
2014-11-10 08:51 12991. 从环境变量中读取路径: <bean id=&q ... -
JAVA实现AES加密与解密
2014-11-04 15:34 631package com.eifesun.monitor.up ... -
Netty4.x分析
2014-07-31 11:06 1433官网定义: netty是一个异步、事件驱动的网络应用框架,用 ... -
Ways to sort lists of objects in Java based on multiple fields
2014-07-21 17:19 7471. the first way: Sorting wit ... -
how to parse a String to BigDecimal
2014-07-21 10:08 894private BigDecimal parsePrice( ... -
order list using google guava
2014-07-21 09:08 865Predicate<String> filter ... -
Java 读文件操作
2014-07-08 14:09 8641. only use java core, no exte ... -
怎样使Java 中测试按一定顺序执行
2014-03-10 11:27 1273@FixMethodOrder(MethodSorters. ... -
如何实现在当类初始化时,自动调动某个方法
2014-02-14 14:44 934有两种思路, 1. 将这个类实现为thread类 (or ... -
持续集成JenkinsAPI常见用法
2014-02-10 13:54 43jenkins(持续集成开源工具)提供了丰富的api接口,基 ... -
Sonar 安装与使用
2014-01-13 10:49 1702Sonar 是一个用于代码质量管理的开放平台。通过插件机制, ... -
源代码管理分析工具 Source Navigator的安装与使用
2014-01-13 09:51 1852Source-Navigator是原来redhat开发的一个 ...
相关推荐
JAVA反编译工具JAD JAVA反编译工具JAD JAVA反编译工具JAD
jad反编译工具的安装说明,每个步骤说的很细
jad反编译两个工具
jad-java反编译工具eclipse插件,jad-java反编译工具eclipse插件
java反编译工具(jad.exe),例子:example1.class 结果是将example1.class反编译为example1.jad。将example1.jad改为example1.java即得源文件
jad反编译工具安装文件jad反编译工具安装文件jad反编译工具安装文件jad反编译工具安装文件jad反编译工具安装文件jad反编译工具安装文件jad反编译工具安装文件jad反编译工具安装文件jad反编译工具安装文件
jad反编译工具详解 jad反编译工具详解
这也要设置分数干嘛,就是一个共享工具罢了,没法不设置分数,没有办法。。。
对于很多人说jad反编译后中文显示乱码,其实显示的是unicode字符;jad命令中有可以让中文正常显示的 -8 - 将Unicode字符转换为ANSI字符串,如果输出字符串是中文的话一定要加上这个参数才能正确显示。 最常用的反...
jad java 反编译 工具 jad java 反编译 工具 jad java 反编译 工具
MyEclipse的jad反编译工具及教程,亲测可用
jad反编译器,很不错的反编译工具,内含eclipse所要的jar,可能直接做为eclipse插件
JAVA反编译工具JAD.doc JAVA反编译工具JAD.doc JAVA反编译工具JAD.doc