views:

73

answers:

4

I delete my java program from java project in eclipse. The extension was .java and I don't know how to get back? I try (getdataback for NTFS) but I didn't get back my *.java file. Some solution?

+8  A: 

If you are using Eclipse, it has the ability to restore deleted files. Right Click on your project, and then choose Restore from Local History... option.

Pablo Santa Cruz
+4  A: 

Right click on your project and select "Restore from Local History", it might still be there.

Yiannis
+1  A: 

If you still have the .class files, or can get them back with a recovery tool, you can use a decompiler to try and convert (decompile) them back to .java source files.

More info on decompilers for Java can be found here: http://stackoverflow.com/questions/31353/is-jad-the-best-java-decompiler

If you're looking for help on how to get deleted data back, Superuser.com would be a more suitable place to ask your question.

And next time, back up your files more often, or better, use a source control system like GIT or SVN (and back that up too, of courtse!).

Bart Kiers
A: 

If you still have the .class files, you can try DJ Java Decompiler

Atanas