• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Converting class to Java source file  RSS feed

 
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
 
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,
 
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?
 
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.
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!