`

myeclipse反编译插件安装和JAVA反编译工具

    博客分类:
  • Java
阅读更多

很多情况下我们想知道源码,但是又木有源码的情况下怎么办呢?不急,这里提供一个很好的工具,和myeclipse的反编译JAVA插件的安装。安装过程如下:

 

  1. 安装插件第一步,不说了
   安装第一步
  

  2.
 出现如下name输入:JD-Eclipse。网站输入:
 http://java.decompiler.free.fr/jd-eclipse/update


 
输入插件地址

 主要就是这两部了,其他的很简单了。你懂的!内存太小了,会出现JVM奔溃的情况,那赶紧换个内存吧,现在内存都是白菜价了。附件是JD-GUI和eclipse的jd反编译插件,插件中把features和plugins里的文件全部copy到eclipse对应的安装目录即可。jd-gui这个工具很强大,直接运行exe文件即可,然后点击打开jar文件或者class文件的目录即可反编译出java文件。

jd-gui直接是图像界面的反编译工具,可以打开jar包也可以打开目录,然后点击File-save source或者File-save all souces就可以得到所有的反编译得到的java文件。但是这里会出现前面加上一些注释在第几行,往往这个都是错误的。所以这里你可以使用jad158g.win.zip解压后,把jad.ext放到path环境变量中。然后可以就可以使用jad命令来反编译class文件了。这里举简单的例子:
jad example1.class   //这里得到的后缀名为jad所以不经常使用
jad -sjava example1.class  //这样就可以得到后缀明为java的java文件了这个名称默认是class文件的名称
jad -p example1.class > myexm1.java  这样你可以改变反编译得到的java文件的名称

jad -o -dtest -sjava *.class //这个可以编译test目录下所有的class文件

也可以写成这样jad -o -d test -s java *.class

上面只能反编译test目录下的class文件,不能反编译test目录下所有的子目录的class文件。要这种效果,可以使用下面命令

jad -o -r -sjava -dsrc 'tree/**/*.class'

这样就可以反编译tree目录下所有的class文件了。得到的结果放到src目录下。

jad还有下面这些可以用的变量:

 -a       - annotate the output with JVM bytecodes (default: off)

   -af      - same as -a, but output fully qualified names when annotating

   -clear   - clear all prefixes, including the default ones (can be abbreviated as -cl)

   -b       - output redundant braces (e.g., if(a) { b(); }, default: off)

   -d <dir> - directory for output files (will be created when necessary)

   -dead    - try to decompile dead parts of code (if any) (default: off)

   -disass  - disassemble method bytecodes (no JAVA source generated)

   -f       - output fully qualified names for classes/fields/methods (default: off)

   -ff      - output class fields before methods (default: after methods)

   -i       - output default initializers for all non-final fields

   -l<num>  - split strings into pieces of maximum <num> chars (default: off)

   -lnc     - annotate the output with line numbers (default: off)

   -lradix<num> - display long integers using the specified radix (8, 10 or 16)

   -nl      - split strings on newline character (default: off)

   -nocast  - don't generate auxiliary casts

   -nocode  - don't generate the source code for methods

   -noconv  - don't convert Java identifiers (default: convert)

   -noctor  - suppress the empty constructors

   -nodos   - do not check for class files written in DOS mode (CR before NL, default: check)

   -nofd    - don't disambiguate fields with the same names by adding signatures to their names (default: do)

   -noinner - turn off the support of inner classes (default: on)

   -nolvt   - ignore Local Variable Table information

   -nonlb   - don't output a newline before opening brace (default: do)

   -o       - overwrite output files without confirmation (default: off)

   -p       - send decompiled code to STDOUT (e.g., for piping)

   -pi<num> - pack imports into one line after <num> imports (default: 3)

   -pv<num> - pack fields with identical types into one line (default: off)

   -pa <pfx>- prefix for all packages in generated source files

   -pc <pfx>- prefix for classes with numerical names (default: _cls)

   -pf <pfx>- prefix for fields with numerical names (default: _fld)

   -pe <pfx>- prefix for unused exception names (default: _ex)

   -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)

   -r       - restore package directory structrure

   -radix<num> - display integers using the specified radix (8, 10 or 16)

   -s <ext> - output file extension (by default '.jad')

   -safe    - generate additional casts to disambiguate methods/fields (default: off)

   -space   - output space between keyword (if/for/while/etc) and expression (default: off)

   -stat    - display the total number of processed classes/methods/fields

   -t       - use tabs instead of spaces for indentation

   -t<num>  - use <num> spaces for indentation (default: 4)

   -v       - display method names being decompiled

   -8       - convert UNICODE strings into 8-bit strings

              using the current ANSI code page (Win32 only)

   -&       - redirect STDERR to STDOUT (Win32 only)

分享到:
评论

相关推荐

    myeclipse反编译插件安装

    myeclipse反编译插件 一:下载插件 JAD : http://www.varaneckas.com/sites/default/files/jad/jad158g.win.zip(选择与操作系统对应的版本) JadClipse:http://sourceforge.net/projects/jadclipse/files/...

    java myeclipse反编译插件

    java反编译jar包工具

    java反编译工具(含MyEclipse插件)

    1、本附件包含两个反编译工具、下载解压后有两个文件夹,一个叫做MyEclipse内部反编译,另一个叫做MyEclipse外部反编译。 2、先说外部反编译、这个比较简单、直接打开文件夹、解压里面的文件jd-gui-0.3.3.windows....

    eclipse/myeclipse反编译工具

    同步到eclipse或者myeclipse反编译代码,提供java开发人员能够进一步跟踪代码错误的原因。更能够方便的查看底层代码,学习源码!

    myeclipse反编译插件jadClipse java开发必备

    JadClipse 是一款快速的反编译插件工具,适合使用Eclipse MyEclipse进行开发的java开发人员

    java 反编译工具 myEclipse插件

    超好用的反编译插件,值得推荐。 可以直接cmd命令行反编译或者反编译jar包,简单配置就可以了。 压缩包内有使用的.exe 和 .jar插件,还有使用说明以及安装方法,很齐全的哦。。。

    java反编译工具(MyEclipse低版本的安装)

    java反编译工具(MyEclipse低版本的安装)包括插件及安装帮助手册,低版本与高版本的安装方式不同

    myeclipse 反编译

    myeclipse反编译插件 安装流程: 1.解压jad1.5.8g.zip,将jad.exe放到jre的bin目录下如F:\Java\jre1.5.0_06\bin 2.在Local\Genuitec\MyEclipse 8.5\dropins目录下新建eclipse文件夹 3.再eclipse目录下新建plugins...

    java反编译工具,Eclipse反编译插件

    MyEclipse6.5 的中安装jadclipse(反编译工具) java反编译工具jad使用方法

    MyEclipse反编译class工具

    安装步骤: 1. 解压缩后将jad.exe拷贝到JRE的bin目录下,如\Java\jre1.5.0_06\bin 如果不拷到bin下面,就按配置.jpg配置见第3步 2.下载 jadclipse_3.3.jar ...5、安装完成,双击class文件,Eclipse将自动反编译了。

    myeclipse反编译工具

    反编译 myeclipse6.5插件 java

    java反编译工具myeclipse8.5 及以上版本

    java 反编译工具插件以及安装手册帮助文档

    myeclipse进行及时反编译的jad插件

    jad是一款使用非常广泛地Java反编译工具,MyEclipse6.5的反编译插件的安装介绍,首先需要下载jad.exe和net.sf.jadclipse_3.3.0.jar两个文件,资源包里包含了;第二歩将jad.exe放进\Java\jdk1.7.0\jre\bin目录下,...

    Myeclipse 反编译工具

    (1) 将jad.exe解压到java的jdk\bin目录下... 3)在eclipse窗口下,点击Window &gt; Preferences &gt; Java &gt; JadClipse &gt; Misc,将Convert Unicode strings into ANSI strings选项打勾,避免反编译后可能出现的中文乱码。

    myeclipse 7.x 反编译插件jad安装说明+全套安装包

    myeclipse 7.x 反编译插件jad安装说明+安装包

    Myeclipse 6 反编译工具安装(jad)

    jad是java的反编译工具,是命令行执行,反编译出来的源文件可读性较高。可惜用起来不太方便。还好找到eclipse下的插件,叫jadclipse,安装好之后,只要双击。tech.Phontol.comclass文件,就能直接看源文件,包括jar...

    myeclipse反编译工具 jadclipse jad.exe

    jadclipse 反编译插件 http://sourceforge.net/projects/jadclipse/ jad.exe 反编译程序 http://varaneckas.com/jad/ 安装: 1 安装插件:将 net.sf.jadclipse_3.3.0.jar包复制到MyEclipse安装文件中dropins文件夹...

    java反编译工具

    JAVA反编译软件 包里面包含: cavaj(JAVA破解工具) Cavaj.Java.Decompiler cavajdemo FrontEnd Plus jad158g.win jd-gui MyEclipse9.0反编译插件 ...多种java反编译工具,还有myeclipse9.0的反编译插件

Global site tag (gtag.js) - Google Analytics