• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java

 
EKAMBARAM Ragothaman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to convert java .class file back to .java file
 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
go to your jdk direcotry there is a file located called javap.exe run that file and supply a class file which you want to convert back to the source file. It should do a trick.
 
Randall Twede
Ranch Hand
Posts: 4482
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really Val Dra? I heard it was easy but I didnt know it was that easy!
A correction. the file is in the /bin subdirectory.
[This message has been edited by Randall Twede (edited February 02, 2001).]
 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Depending on a contion you supply as an argument you get a list of what you want.
 
Pravin Panicker
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well javap does not give your complete java file back only method declarations .
For your complete code you can download srcagain an exe and run it passing the class file name .Redirect the output to a file and you get your java file back!
url : http://www.sourceagain.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic