• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting class to Java source file  RSS feed

 
janne jounivich
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • 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
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • 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
  • 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,
 
dave hopkins
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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?
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!