• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Extracting .class to .java?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic