Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extracting .class to .java?

 
Salim Sentosa
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I accidently deleted a .java class, but I have the latest .class file.
Is it possible to re-convert it back?
If so how? if not... o'well, start over.
Thanks in advance!
 
Jorge Phillips
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try a Java decompiler such as Mocha or Crema. Decompile your class into source code and comment it again.
You can get a free version of an old beta of Mocha from http://www.brouhaha.com/~eric/computers/mocha.html. This is probably enough for retrieving your deleted .java file. Of course you could also buy a commercial decompiler of which there are quite a few.
Good luck.
 
Salim Sentosa
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I did a search on downloads.com, and found a great one!
Free too. Try here:
http://download.cnet.com/downloads/0-14493-100-7621614.html?tag=st.dl.10000-103-1.lst-7-1.7621614
Thanks for the hint allowing me to search!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic