It's not a secret anymore!*
The moose likes Beginning Java and the fly likes Create Java File From Class File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Create Java File From Class File" Watch "Create Java File From Class File" New topic
Author

Create Java File From Class File

Scott Martindell
Greenhorn

Joined: Jul 20, 2008
Posts: 2
Is there a way to create java files from class files? I lost the changes I made to my java files but have the class files generated by them.

Thanks,
Scott
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11169
    
  16

you can use a decompiler, but the result won't be pretty.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Scott Martindell
Greenhorn

Joined: Jul 20, 2008
Posts: 2
How would I go about doing that?
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 685
Google for it.
Here's one I found just recently:
JD home page: http://java.decompiler.free.fr
An older one that has gone commerical:
Home page: http://members.fortunecity.com/neshkov/dj.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Create Java File From Class File
 
Similar Threads
delete content of file from java
To make a .exe file from java .class files
DB Backup - MySql
ant classs path problem
Put a java project in a jar file