• 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

Converting class to Java source file

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I don't know if this topic belongs here but I am gonna explain my litte problem anyway. By mistake I deleted some part of Java code in my app. I tried to restore Windows to save the source file but it didn't work. I didn't get back the original source code no matter what I tried. But instead I got back the original class file so therefore I am wondering if there is a way of transforming this class file into Java source file, perhaps with the help of some other program or?

Pls help me out with this!
janne
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are after a Java decompiler. Google for one and you should find what you need.
 
janne jounivich
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi again,

Don't bother! I found a resolution. At http://www.kpdus.com/jad.html
I found a program called jad.exe and with this I could decompile
class back into java source. Fortunately!

Cheers,
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I never realised it was so easy to decompile a java file! I mean I know it's not perfect but doesn't this (jad) make non open source java programs a bit of a joke?
 
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by dave hopkins:
I never realised it was so easy to decompile a java file! I mean I know it's not perfect but doesn't this (jad) make non open source java programs a bit of a joke?



No. A good obfuscator can make reverse-engineering code more trouble than it's worth. Plus there's nothing that says all Java applications need to have class files on a machine the vendor doesn't control.
reply
    Bookmark Topic Watch Topic
  • New Topic