简体   繁体   中英

Get data back with extension .java

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?

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.

右键单击您的项目,然后选择“从本地历史记录还原”,它可能仍然存在。

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!).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM