• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with Eclipse project after replacing hard drive (XP)  RSS feed

 
Malcolm Storey
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have recently replaced the hard drive and reinstalled Windows XP. Have perhaps done the installs (JRE/Eclipse/JDK) in the wrong order. My attempts to get my Java project working again seem to be moving backwards. javascript:emoticon('');

Also I simply copied the project folder onto an external drive, then copied it back onto the new drive, so any embedded absolute pathnames will be wrong, but assumed that Build or Clean Project would fix that.

Am now in state where build doesn't seem to do anything. Run gives



It all compiles (at least, have corrected all the errors) and there is a "main" declaration.


I installed JDK yesterday (previously only had JRE and it was running OK)

Help!
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely all the build path data is now missing / lost -- what used to be a source directory or package is now simply treated as a regular directory. This is why it can't find your files directory.

Just right click on the directories, and reassign the source directories back...

Henry
 
Malcolm Storey
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The editor finds the files OK, and the "Java Build Path" looks OK: "NWB/src"

But there's a problem with the bin directory:

Description Resource Path Location Type
The project was not built due to "Could not write file: E:\Eclipse Java Projects\NWB\bin.". Fix the problem, then try refreshing this project and building it since it may be inconsistent NWB Unknown Java Problem

When I click on it, Windows says "file or directory is corrupted and unreadable", so not sure how to proceed.

Come to think of it, one of the problems yesterday was that the system asked me to run CHKDSK. Think it was on E:\Eclipse Java Projects\NWB\bin. Ran it on all drives (with the /F) and it completed OK so assumed that was the end of it.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you remove the project (just the project, not the source) and create it again from the existing source?
 
Malcolm Storey
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Created a new project and dragged all the packages into it. That sorted it.

Many thanks (again!) Rob.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!