Eclipse could not delete error

后端 未结 29 1618
粉色の甜心
粉色の甜心 2020-12-30 18:25

I\'m working on a project with Eclipse and by now everything was fine, but last time I\'ve tried building it, it returned the error,

\"The project was

相关标签:
29条回答
  • 2020-12-30 19:09

    The process I followed is

    1. Close eclipse
    2. Explore to the folder
    3. Delete it
    0 讨论(0)
  • 2020-12-30 19:09

    I had the same problem. After restarting Eclipse, one delete goes through for me and then subsequent deletes fail. What I finally did was restart Eclipse then Ctrl + click every item I wanted to delete. Then I deleted them all at once and it worked fine.

    0 讨论(0)
  • 2020-12-30 19:10

    Problems with deleting things for me under Windows usually come down to one of two things:

    • The file being open by a program. This includes the JVM. This usually doesn't go away by itself.
    • The Antivirus-program on the computer has the file open for whatever it needs to do. This usually goes away after a while. I frequently recreate workspaces, and if this happens too fast, Eclipse complains that it cannot delete files.
    0 讨论(0)
  • 2020-12-30 19:10

    Solution (for me): In my case the file was no longer existing wherever it was linked from, hence the file could not be found ( obvious ). All of the files being referenced are in paths in my src folder somewhere or in other local projects. Nothing so far has worked for me except the following...

    How I was able to remove my broken links.

    • Open Eclipse, open project
    • Go to folder (in explorer) where the file is being referenced from.
    • Create a file (blank/empty) with the same name as the file being referenced (ie: "File.java").
    • Go back into eclipse and refresh project.
    • Now you can delete the file that is now being found.

    Link removed.

    This is a dirty workaround. I do hope that this issue is resolved however.

    0 讨论(0)
  • 2020-12-30 19:11

    What works for me :

    1. Close Eclipse.
    2. Go to your bin folder and delete all the contents (not the folder itself).
    3. Start Eclipse.
    4. Clean your project by going to Project -> Clean.
    5. Make sure you check Project -> Build automatically.
    0 讨论(0)
  • 2020-12-30 19:12

    I was working on an open source project, and this particular problem was a real pain in the ass and ended up wasting 4 hours.

    What eclipse is trying to say is:

    I do not have access rights to the particular bin folder. If you are using linux, then:

    1. Open your terminal
    2. Go to the directory where from you are importing the project to eclipse and chmod 777 -R project_folder
    3. Check again, if the problem still persists, go to the folder within your project where bin is located and do the same thing - chmod 777 -R bin_folder
    4. Now open eclipse, clean and build again. It should run smoothly
    0 讨论(0)
提交回复
热议问题