Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in decompilation of class files

 
Knowlegde Seeker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI to all,
I used the reflect api to decompile the class file.but i only got the empty declared methods,"means no inner definitions"
such as:
public void static main(String ar[]){}
private int add(int a,int b){}
NOW THE QUESTION IS
"HOW DO I GET THE INNER DETAIL OF THESE METHODS(MEANS WHAT IS HAPPINING IN MAIN OR IN ANY OTHER METHOD) +INNER CLASSES"
Can any JavaRanchGenious help me ???
Waiting for reply...
 
Amit KumarS
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i don't think that is possible using reflection API... the one way u can do this is use DJ java decompiler.... which will decompile your java class file..
Thanks
Amit
 
Knowlegde Seeker
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Amit for reply,
but the problem is that i want to make a decompiler myself in java,DONT want to use any product.
Means problem is how to make a decompiler in java,
Not that how a class file is decompiled by any other product,

I heard about "Moch decompiler" that it is built in java,if it is true then it is possible but how??? dont know.
Hope u understand the problem......
So any other suggestions by U or any other person,
Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic