File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Problem in decompilation of class files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Problem in decompilation of class files" Watch "Problem in decompilation of class files" New topic
Author

Problem in decompilation of class files

Knowlegde Seeker
Greenhorn

Joined: Oct 27, 2003
Posts: 2
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

Joined: Oct 10, 2003
Posts: 100
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


****************************<br />In 24 hrs Earth rotates once on its Axis.
Knowlegde Seeker
Greenhorn

Joined: Oct 27, 2003
Posts: 2
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in decompilation of class files
 
Similar Threads
inner class
protected inner class problem
How To Decompile java Class File
Var scope when extending a base class
Accessing Outer Class