File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 11229
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create Java File From Class File