Bug 244753 - Eclipse build says "missing required library" that is there
Summary: Eclipse build says "missing required library" that is there
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: 3.5 M2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 16:58 EDT by Dean Schulze CLA
Modified: 2009-04-07 01:59 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Schulze CLA 2008-08-20 16:58:04 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1.  Checked out project from svn.
2.  Ran ant build.xml to build required libraried
3.  Did Refresh on the project.  The required .jar files are there


More information:
The eclipse build complains that three .jar files are missing when they are there.  Checking under Project -> Properties -> Java Build Path -> Libraries shows the 3 .jar files and does not indicate any problem.

Building the project exits too quickly with the same error messages.

I'm running on Ubuntu 8.04.1 64 bit using the 64 bit build of Eclipse and the 64 bit version of JDK 1.5.0_16.
Comment 1 Remy Suen CLA 2008-08-20 18:53:00 EDT
Does Project / Clean help?
Comment 2 Dean Schulze CLA 2008-08-20 20:35:09 EDT
Project / Clean has no effect.  I've tried with Build Automatically set and unset.  The Project always fails complaining that it can't find three .jar files that it has in the Java Build Path.
Comment 3 Jerome Lanneluc CLA 2008-08-21 06:19:34 EDT
I cannot reproduce. Do you have details steps to reproduce?
Also have you tried closing/reopening the project? (Project > Close Project / Open Project)
Comment 4 Dean Schulze CLA 2008-09-05 19:37:08 EDT
I was able to get rid of this problem by deleting and importing the project.  The only difference is that the projects had different names in Eclipse ("server" when I checked it out from svn - which gave the error - and "EnerdeqServer" when I imported it).

With Eclipse on Windows I could change the Project name in Eclipse, then overwrite the .project file from svn with the "official" project name in it and still keep the new Project name in my local Eclipse.

Maybe having different Project names in Eclipse and the .project file causes this on Linux.  I get away with it on Windows all the time.

I've also noticed that I can't rename a project in 64-bit Eclipse on Linux 

   https://bugs.eclipse.org/bugs/show_bug.cgi?id=244734

Comment 5 Dean Schulze CLA 2008-09-05 19:46:11 EDT
I deleted the project and imported it.  After doing this the problem with the missing .jar files went away.  

(My guess is that problem occurred because when I checked out the project from svn I used a different project name than the one in the .project file and then overwrote the .project file with the one with the "official" project name from svn.  See https://bugs.eclipse.org/bugs/show_bug.cgi?id=244753 )

I still can't rename the project, however.  The current project name is the same as in the .project file so there's no conflict there.  When I select "Rename" from the Navigator view it says

    Resource "MyProjectName" is out of sync with file system.

Doing a Refresh and Rename gives the same result.

Maybe Refresh isn't working properly.

Comment 6 Jerome Lanneluc CLA 2008-09-08 04:14:32 EDT
(In reply to comment #4)
> I was able to get rid of this problem by deleting and importing the project. 
> The only difference is that the projects had different names in Eclipse
> ("server" when I checked it out from svn - which gave the error - and
> "EnerdeqServer" when I imported it).
> 
Does this mean that the problem no longer occurs?
Comment 7 Dean Schulze CLA 2008-09-09 15:40:30 EDT
I don't have the problem on that project any longer, but that doesn't mean that checking something out from svn wouldn't reproduce this issue.
Comment 8 Jerome Lanneluc CLA 2008-09-10 04:26:35 EDT
Thanks. Closing this bug then. Please reopen if this happens again and you have detail steps to reproduce.
Comment 9 Frederic Fusier CLA 2008-09-15 09:40:18 EDT
Verified for 3.5M2 using I20080914-2000.
Comment 10 Karel Ludanek CLA 2009-04-07 01:59:56 EDT
This bug is from eclipse 3.2. Sometimes it happens when eclipse is non correctly exited (PC off or kill eclipse process in task manager). Sometimes it happens during work, sometimes when .classpath file is edited outside eclipse (another user in SVN and next update project from SVN).
In my PC was several reasons to solve this problem:
1/ refresh project and build
2/ clean project and build
3/ remove library from library path in lib window, clean, restart eclipse, add library and build.

It looks, eclipse has internal list of files in project in metadata and pointer to this file is removed?

I hope this helps to solve this (painful) problem.

KL