Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to recover Java file from Eclipse Project that damaged by getting power off?

Tags:

eclipse

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:

enter image description here

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.

like image 201
Shreyash Mahajan Avatar asked Jan 09 '12 11:01

Shreyash Mahajan


People also ask

How do I recover a closed project in Eclipse?

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.

How do I open a Java project in Eclipse?

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.


2 Answers

try the eclipse's local history.. right click the file -->replace with-->previous from Local History.

like image 50
pahan Avatar answered Oct 19 '22 05:10

pahan


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.

like image 35
Furqi Avatar answered Oct 19 '22 05:10

Furqi