Community
Participate
Working Groups
if you change an exist project -> Java Build Path -> Libraris -> remove a jar -> OK. An Error is created: Invalid project description. OK d:/www/LP_PostfachService and d:/www overlap.
Matthias, can you please provide more info. - which build are you using - is there anything in the log - do you have steps to reproduce this - where exactly is the error created.
this problem is on version: I200405290105 and I200406111814 In the perspektive Java. I clicked on my project in the PackageExplorer ( right click ) -> properties->Java Build Path -> Libraries ->Click the first *.jar -> remove a jar -> OK. and then is the error created. ! the jar i had tryed to delete is not deleted ! I can this error reproduce , any times. The project was created with eclipse 2.1 no log entry is created if I create a new project with build I200406111814 , the error will not shown.
Martin, can you please investigate. Seems to be a problem when upgrading a workspace from 2.1.x to 3.0.
Matthias, can you attach the .classpath file of the project where you have this problem?
Created attachment 12139 [details] the .classpath file
it seems that the classpath validation is more strict or has a bug. We use JavaConventions.validateClasspath for that. The project happens to have lots of libraries inside source folders. That shouldn't be a problem. Moving to jdt.core
I see two incompatible entries in your classpath: <classpathentry kind="src" path="src"/> and <classpathentry kind="src" path="/LP_Shared"/> Since 2.1, Java Build Path dialog did not allow you to set this as you'll get error message: Invalid classpath in 'LP_Shared/.classpath' file: Cannot nest 'LP_Shared/src' inside 'LP_Shared'. To enable the nesting exclude 'src/' from 'LP_Shared'. In 2.0, you cannot set both Project and a folder a source location... So, questions are: 1) did you modify you .classpath manually? 2) if you remove one of the offending line for source location, do you still get same error? 3) i'd like to know the version you used with this .classpath. Is it 2.0, 2.1? With which RC version (ie. 2.0.2 or 2.1.3...)? Thx
Or perhaps... /LP_Shared was outside your workspace, wasn't it?
Sorry, I was a little be confused... It seems that LP_Shared is a project of your workspace and in an other project, you refer to libraries present in folder lib of LP_Shared project... Is it correct? If so, forgot my previous comment 7 and comment 8... However, I cannot reproduce your problem. I created 2 projects LP_Shared and b67210 repectively in 2.1.3 workspace. Here is my workspace setup: b67210 src Test.java (empty class) LP_Shared lib jclMin.jar (which contains Object.class) .classpath for b67210: <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="lib" path="/LP_Shared/lib/jclMin.jar"/> <classpathentry kind="output" path="bin"/> </classpath> I have copied these 2 projects in 3.0 workspace and imported them. Then I removed library jclMin.jar from .classpath of b67210 using dialog of Java Build Path wihtout any problem... So I still need precision on versions you use or any other information which can help me to reproduce the problem... There's also still remaining question about manual changes in .classpath as I cannot see how you can get line: <classpathentry kind="src" path="/LP_Shared"/> in .classpath file using the dialog interface... Perhaps, if it not too big can you zip your project on which you get the error (not LP_Shared) and attach it to this bug. If it's too big then please send it to me... Thx
FYI: I also performed similar test with 2.0.2 workspace and didn't get any error while removing the library in Java Build Path dialog...
HI, I don't modify the classpath by hand. Sorry I cant sent the project. Inside the projced are to many security informations . Sorry! I dont remember when I created this Project, mybe with eclipse 2.0 at spring 2002.?? Matthias
I've tried to set up a project with similar .classpath using 2.1.3 version: <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="lib" path="/LP_Shared/lib/lps/latest/lib/compare.jar"/> <classpathentry kind="lib" path="/LP_Shared/lib/lps/latest/lib/antsupport.jar" sourcepath="/LP_AAS/src"/> <classpathentry kind="lib" path="/LP_Shared/lib/lps/latest/lib/antui.jar" sourcepath="/LP_AAS/src"/> <classpathentry kind="lib" path="/LP_Shared/lib/ant.jar"/> <classpathentry kind="lib" path="/LP_Shared/lib/jclMin.jar"/> <classpathentry kind="lib" path="/LP_Shared/lib/lucene-1.2.jar"/> <classpathentry kind="lib" path="/LP_Shared/lib/optional.jar"/> <classpathentry kind="lib" path="/LP_Shared/lib/parser.jar"/> <classpathentry kind="lib" path="/LP_Shared/lib/xercesImpl.jar"/> <classpathentry kind="var" path="IBM_VM"/> <classpathentry kind="var" path="IBM_RMI"/> <classpathentry kind="lib" path="/LP_Shared/lib/lps/latest/lib/dtcore.jar"/> <classpathentry kind="lib" path="/LP_Shared/lib/xmlParserAPIs.jar"/> <classpathentry kind="output" path="bin"/> </classpath> and then open this project with 3.0 RC3. I still can remove any project using Java Build Path dialog page without any error or problem. Please retry with last RC3 version. You can also try to remove by hand in .classpath... If it still does not work, then it will be difficult to reproduce your problem without having having your project as there's surely something wrong with it in your workspace... Another advice could be to export this project and import it in a new "pure" 3.0 workspace to see if the problem still remains... Reopen the bug when you would have made these tests and if you unfortunately still have issue...
3.0 RC3. does't work ! Any perpektive is crached. I go back to 3.0 RC2 ! I am waiting for the day the finally is coming :-)) I hope all other bugs are fixed then. Matthias