phemps
phemps

Reputation: 47

Eclipse, error: Couldn't write file "...." (permission denied)

I have a maven project on eclipse linked with a git repository. When I try to save files, eclipse tells me that it couldn't save the file because the permission is denied. I noticed that it happened after I remove some class from my project.

Upvotes: 1

Views: 3712

Answers (1)

Pawan Ratekar
Pawan Ratekar

Reputation: 61

This is because according to your system, you are not the owner of the particular directory. If you are using ubuntu here is what you can do: Login as root user to do this, in terminal enter command

"sudo su"

provide your password. Then navigate till the directory and enter command

"chown -v user_name -R folder_name/"

This worked for me hope will do for you.

Upvotes: 5

Related Questions