1. jode Introduction
The open-source jode is a member of sourceforge.net, the world's largest open-source project website. Among all Java anti-compilers, Jode has the best decompilation effect, especially for some common encryption methods, for example, obfuscation technology is even more radical. Jode is also developed in pure Java. Recently, more and more java decompilation software also chooses jode as their core engine, such as jcavaj Java decompiler and btj (back to Java) and jedit's javainsight plugin. Jode is a runable JAR file, which can be run by double-clicking in windows.
2. Install the jode Eclipse plug-in
On eclipse, click ==> help ==> software updates ==> find and install ==> search for new features to install, and click "new remote site... ", enter jode decompliter in name, enter http://www.technoetic.com/eclipse/update in URL bar, and then next, you can see" jode decompiler, select and click Finish to automatically download and install it on the official website. After installation, you can go to the window ==> preferences... ==> Java ==> jode decompiler tab.
After installation, set the file association. Window => preferences... => General => editors => File Associations find "*. class "in" associated editors ", you can see" jode class File Viewer ". Select it and click the default button.
3. Use of jode
In fact, Jode is used because we usually only have Java class bytecode files but no source files. In this case, we only need to decompile them. In eclipse, we usually want to view the source code of a class file, it must be associated with the source file. If we have installed the jode plug-in, we don't have to look for the source file. If we directly decompile the file, we will be OK (although sometimes a bunch of errors will be reported @_@). Note that jode only recognizes the. jar file (the war file is not supported. Therefore, if it is a war file, you should decompress it and package it into a. jar package ).
First, package the class file that you want to decompile into. jar package, and then import it to your Eclipse project. Then you can expand the jar package you just imported and view the corresponding source file of the class file.