| Summary: | Error after deleting a lib from library folder (Java Model Exception) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Alessio Pollero <alessio.pollero> | ||||
| Component: | Core | Assignee: | Jay Arthanareeswaran <jarthana> | ||||
| Status: | VERIFIED NOT_ECLIPSE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | alessio.pollero, amj87.iitr, satyam.kandula | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.8 M6 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Alessio Pollero
Created attachment 208987 [details]
eclipse error log
I think a possible workaround should be to refresh the project after deleting from build path and then delete the jar from the lib folder. Jay, can you please follow up? Thanks! Did you mean you get the error when you remove the jar from the build path? Or are you trying to remove the JAR from eclipse itself, say package explorer? Can you check if the JAR was open in another application? I am unable to reproduce the bug. But it would help if you can attach the log file. The error happen after that i delete the jar file from the library in package explorer, the only program that keep opened the file is eclipse itself, because when i close and reopen eclipse then i succeed with the delete . The error happen after that a dialog with a progress bar indicating the file delete progression is close to the end (100%) . The error log is already attached to this bug. (In reply to comment #4) > The error happen after that i delete the jar file from the library in package > explorer, the only program that keep opened the file is eclipse itself, because > when i close and reopen eclipse then i succeed with the delete . > > The error happen after that a dialog with a progress bar indicating the file > delete progression is close to the end (100%) . > > The error log is already attached to this bug. How did you add this particular jar (beansbinding-1.2.1.jar) to the classpath? As external JARs or library/variable? Could you try a couple of things for me, because I am not able to reproduce the problem: Can you try the same steps with a different library? If possible, can you attach your workspace? beansbinding-1.2.1.jar is a library used by WindowBuilder to let the user to bind a component in the UI to a bean, maybe the problem is that WindowBuilder still kept opened the library, but in that case i shouldn't be able to remove from the build path, isn't it ? However to test this case you have to install WindowBuilder plugin then create a lib folder in your project, copy beansbinding.jar library, then right click on it and add to the build path, after that you should see the binding tab in window Builder editor, so you can try to remove the library in the way i done ... (In reply to comment #6) > beansbinding-1.2.1.jar is a library used by WindowBuilder to let the user to > bind a component in the UI to a bean, maybe the problem is that WindowBuilder > still kept opened the library, but in that case i shouldn't be able to remove > from the build path, isn't it ? No, removing from build path shouldn't be affected. However deleting involves a resource delete, which would be affected if the file is open by some other client. I don't think we can do anything here. The resource is being used by another application, which means the resource can't deleted from eclipse. I am not able to reproduce the problem by using a library jar. I didn't try with the WindowsBuilder plugin. I also think that the jar is open by some plugin causing this problem. Verified for 3.8M6. |