Can we regenerate .java file from .class file using javap tool of jdk?
I used javap classsfile
command, it just prints .java file with data member and member functions declaration.
If not then what are the appropriate methods to accomplish it...
Can we regenerate .java file from .class file using javap tool of jdk?
I used javap classsfile
command, it just prints .java file with data member and member functions declaration.
If not then what are the appropriate methods to accomplish it...
you cannot create complete .java file from javap tool. javap tool only returns methods and members in class file.
you can use jad tool to decompile java code. but it also have limitations with code versions.
use http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/JAD.shtml to find jad tool
generating .java from .class is called decompililng. So you need some decompiler to generate .java from .class
here are some of the open source decompiler
Yes its possible using java Decompiler.Please download java Decompiler or go through this url http://jd.benow.ca/