aspose file tools
The moose likes Java in General and the fly likes class file to source file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "class file to source file" Watch "class file to source file" New topic
Author

class file to source file

saravanan ragunathan
Ranch Hand

Joined: Aug 02, 2010
Posts: 84
can i convert class file to source file




"I Love Java Ranch"
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14685
    
  16

By using a decompiler like jad.


[My Blog]
All roads lead to JavaRanch
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12950
    
    3

You can indeed do that using a decompiler, but don't expect that the output will be exactly the same as the original source code. Some information, like names of local variables, is lost in the compilation process, so it's impossible to get those names back by decompiling.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: class file to source file
 
Similar Threads
What's wrong??
About Try-Catch
Class to java conversion
A very simple question (Please Answer)