title: How to repair/setup Eclipse Java EE on OS X 10.7.3 and grant permissions for it?
body: <p>I can not update packages, can't clean project, can't build project.</p>
  
  <p><strong>On building the project it writes me an error:</strong></p>
  
  <p>The project was not built due to "Could not delete '/.../classes/com'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent
  Unknown Java Problem</p>
  
  <p><strong>When I'm trying to clean the project it reports:</strong></p>
  
  <p>Errors occurred during the build.
  Errors running builder 'Android Package Builder' on project '...'.
  Problems encountered while deleting resources.
  Could not delete ....</p>
  
  <p><strong>On update:</strong></p>
  
  <p>android-sdk-macosx/temp/google_apis-15_r02.zip (Permission denied)</p>
  
  <p>It looks like it do not gets permissions for system calls or something like that.
  When I launch eclipse from terminal with: "./eclipse" after I had logged with "sudo -s" it gets all the permissions and cleans and builds projects but when I build the project in that way and launch it on either device or emulator, it crashes.</p>
  
  <p>My question is - what do I need to do to grant all the permission to eclipse session? What I need to edit in .bash_profile? It also does not see working paths.</p>
  
  <p><strong>In .bash_profile I have:</strong></p>
  
  <p>export PATH=${PATH}:~/android-sdk-macosx/tools</p>
  
  <p>and it does not help to see adb and etc, I must always provide full path's.</p>
  
  <p>I have repaired the permissions in OS X, The eclipse ver.:</p>
  
  <p>Version: Indigo Service Release 2
  Build id: 20120216-1857</p>
  
  <p><strong>P.S. My last interactions with eclipse were:</strong></p>
  
  <p>Installed MAT, and updated 4.03 api's from 16 to 18, but I'm sure that the problem appeared before that, cause all these actions I couldn't do in simple session, but from sudo, and day before, it was fully working IDE.</p>