Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345460

Summary: Error writing .classpath adding a library in Build Path
Product: [Eclipse Project] Platform Reporter: Alessio Pollero <alessio.pollero>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: alessio.pollero, daniel_megert
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Alessio Pollero CLA 2011-05-11 12:07:07 EDT
Build Identifier: 20110301-1815

I've imported a project in an Eclipse installation on Windows from a project folder of Eclipse copied from my Mac, then when i try to add some library into the buld path, Eclipse give me an error like this : 

Impossibile add library to the buld path ! Could not write into .classpath file .

If i change the .classpath file with notepad and manually add the xml row of the library the library is loaded correctly, hence my user have the permission for write the file ...

The problem is that if the file .classpath have the hidden attribute, Eclipse give the error could not write .classpath, if i manually remove the hidden attribute to the .classpath file the problem dissapear.

Reproducible: Always

Steps to Reproduce:
1.Mark .classpath with hidden attribute
2.try to load a library in build path (with right click un jar and add to build path)
Comment 1 Dani Megert CLA 2011-05-16 05:28:40 EDT

*** This bug has been marked as a duplicate of bug 194216 ***