Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannnot build java project in Eclipse: Parent of resource is marked 'read-only'

Tags:

java

eclipse

I am trying to run a java project in Eclipse Kepler. The product runs fine on another machine, and I used git clone and Import to load the project on my current machine.

However, upon loading the project, I received the error:
The project was not built due to "Parent of resource: /Users/adam/.../mockup/bin is marked as read-only.". Fix the problem, then try refreshing this project and building it since it may be inconsistent mockup Unknown Java Problem

How can this issue be resolved?

like image 411
Adam_G Avatar asked Nov 04 '13 16:11

Adam_G


2 Answers

I had the same issue and solved it by granting write access to my workspace folder.

Some hints of how doing that in Linux can be found at: Change read/write access of a folder in Ubuntu Linux

like image 149
Alberto Biasao Avatar answered Oct 24 '22 15:10

Alberto Biasao


if changing existing file permissions is not possible, you can also specify the build folder separately (assuming you are able to write your changes into the .project file).

Right-click the project and click properties -> Build path

In there, change the default output folder.

like image 41
Sumit Bisht Avatar answered Oct 24 '22 16:10

Sumit Bisht