Reputation: 73
I accidentally deleted a very important folder through NetBeans. I was just working on my Netbeans project and accidentally deleted it and don't know how to recover it.
Is there a tmp folder that the deleted project is stored in.
Or am I forever doomed?
Thanks, Lucas
Upvotes: 2
Views: 11168
Reputation: 477
If you accidentally delete a folder on Netbean, the way to recover it is as follows. You can't revert deleted folders but you can revert deleted files. Follow these steps.
This has worked on windows and Linux
Upvotes: 7
Reputation: 2255
Try this one: Right click on your project node -> History -> Revert Deleted
Upvotes: 14
Reputation: 6307
Did you delete a project or a folder?
If you deleted a project then dont fear, I have done the same thing in the past (Right clicked on the project and selected delete), but I was able to recover it with little effort.
When you delete a project in netbeans it should only delete the project build data, but not the ".java" files.
I was able to fix it like this:
The folders will become packages, and the ".java" files will be loaded as classes just like it was before the crash. You may have to restore any libraries etc, but you should have all your code.
Upvotes: 1