Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert a class file into a java file?

Status
Not open for further replies.

FAM

Technical User
Jan 13, 2003
345
GB
Is it possible to convert a class file into a java file, i.e. exactly how it would be written if it was originally written as a java file?
Thanks in advance
 
It is possible to convert class files in to java files,but however it is impossible to achieve the originally written format.
For example by using a java editor,we can give variable names whatever we want but after it is compiled (turned into class file) the variable names are optimized.That is only one example, also they are various optimizations are performed during compilation.So when we turn the class file into java file again we lose that infos.Also we lose the comments we write.
You can find java decompilers in the internet easily for free.

Salih Sipahi
Software Engineer.
City of Istanbul Turkey
s.sipahi@sahinlerholding.com.tr
 
Thanks Hattusas, thats what i wanted to know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top