Why is the eclipse interrupted when the .project file is hidden?

Why does the eclipse interrupt with the error "Could not write file: M: \ workspaces \ eclipse \ project.project. M: \ workspaces \ eclipse \ project.project (Access is denied)" when the .project file is hidden (on the Windows file system) ? Note: This also happens with other files.

Playback steps:
1. Install the last eclipse, I use eclipse-jee-galileo-SR2-win32.zip. (Not sure if this is happening in other versions)
2. Create a project.
3. Go to the project in Windows Explorer, find the .project file.
4. Right-click -> Properties
5. In the "Attributes" section, select the "Hide" checkbox. 6. In eclipse, open the .project file, make changes, and try saving.
7. After you receive the error message, clear the check box and save again.

+4
source share
1 answer

A network drive can sometimes have a problem marking files with a hidden attribute ( see this thread , for example)

As illustrated by this IBM technote , this question may be related to Sun Error 6350200 :

When you open a hidden file for write access, a FileNotFoundException . If you delete the hidden attribute (via the attribute), the exception will not be selected, and the application will work correctly.

Resolution: fixed with JDK6_b3 (which JDK do you use to launch your eclipse?), But it may still have some problems that IBM technote reports that it is fully fixed only in JDK7! Therefore, right now you need to remove the hidden attribute for Eclipse in order to be able to successfully open it and write to it.

+5
source

Source: https://habr.com/ru/post/1305493/


All Articles