it happens with me that, I am working on a project with Eclipse. And Suddenly power gone. And after some times while power come back and i open the project in eclipse, i found my all code gone. and see the Screen with error like below image:
So Please what wrong with that Eclipse ? How to recove that java file from eclipse. If i go to that file localy and open that file it open in Word with many pages. but with no text.
To reopen a closed project, in the Package Explorer view, select the closed project and click on the Project menu and select Open Project. Once the project is open its content can be edited using the Eclipse user interface.
Opening the New Java Project wizard By clicking on the File menu and choosing New →Java Project. By right clicking anywhere in the Project Explorer and selecting New → Java Project. ) in the Tool bar and selecting Java Project.
try the eclipse's local history.. right click the file -->replace with-->previous from Local History.
Open the file in Eclipse editor -> right click -> Team -> Show Local History“ View the result in ‘History View’ and chose the last best state of your file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With