I delete my java program from java project in eclipse. The extension was .java and I don't know how to get back?开发者_Go百科 I try (getdataback for NTFS) but I didn't get back my *.java file. Some solution?
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.
Right click on your project and select "Restore from Local History", it might still be there.
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: https://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!).
精彩评论