Tuesday, January 18, 2011

Plugin to De-Compiling java source code in eclipse

Here is how you can use java decompiler with eclipse...

1) Dowload java de-compiler from http://www.viralpatel.net/blogs/download/jad/jad.zip
2) Dowload eclispe plugin from http://sourceforge.net/projects/jadclipse/
3) Now place your de-compiler in any location and include that path in the PATH environment variable
4) Restart eclipse from command prompt with –clean option as C:> eclipse –clean
5) Now go to windowspreferencesjava and you must be able to see a node named jadClipse which is the name of plugin you just installed.
6) Now go to windowspreferencesgeneraleditors-file associations and check the default file association for .class files. It has to be JadClipse Class File Viewer. If not then set that to default and close the window with OK.