Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in decompilation of class files  RSS feed

 
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...
 
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
 
Your mind is under my control .... your will is now mine .... read this tiny ad
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!