Summary: | Eclipse build says "missing required library" that is there | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Dean Schulze <dean_w_schulze> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | VERIFIED WORKSFORME | QA Contact: | |
Severity: | critical | ||
Priority: | P3 | CC: | karel.ludanek, remy.suen |
Version: | 3.4 | ||
Target Milestone: | 3.5 M2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Description
Dean Schulze
2008-08-20 16:58:04 EDT
Does Project / Clean help? 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. I cannot reproduce. Do you have details steps to reproduce? Also have you tried closing/reopening the project? (Project > Close Project / Open Project) 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 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. (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? 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. Thanks. Closing this bug then. Please reopen if this happens again and you have detail steps to reproduce. Verified for 3.5M2 using I20080914-2000. 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 |