Eclipse could not delete error

后端 未结 29 1620
粉色の甜心
粉色の甜心 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:05

    I just had this issue ... and it was due to the fact that I had a command line session (DOS screen...) open in a folder in the BIN tree for the project I was building ... I wanted to run the .class file via command line.

    Solution was simply to cd back to the bin folder so that the "clean" could remove and recreate those target folders.

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

    I haven't read all the previous replies, but I also have the same issue. I'm running Eclipse 4.1 on Ubuntu 12.10, 64 Bit, and a SSD. I realized that this deletion issue always comes up when my computer crashes with an opened Eclipse. I managed to solve the issue by deleting particular index files. For example, my workspace log file (located at /.metadata/.log) was full with EOFException, saying that some metadata could not be read, such as

    !ENTRY org.eclipse.ui.ide 4 4 2012-12-13 13:25:35.988
    !MESSAGE Problems occurred refreshing the selected resources.
    !SUBENTRY 1 org.eclipse.core.resources 4 567 2012-12-13 13:25:35.988
    !MESSAGE Could not read metadata for '/home/xyzworkspace/.metadata/.plugins/org.eclipse.core.resources/.projects/server-test/.indexes/7/9c/properties.index'.
    !STACK 0
    java.io.EOFException
        at java.io.DataInputStream.readByte(DataInputStream.java:250)
        at org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:298)
        at org.eclipse.core.internal.properties.PropertyBucket.load(PropertyBucket.java:258)
        at org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:274)
        at org.eclipse.core.internal.localstore.BucketTree.internalAccept(BucketTree.java:98)
        at org.eclipse.core.internal.localstore.BucketTree.internalAccept(BucketTree.java:109)
        at org.eclipse.core.internal.localstore.BucketTree.internalAccept(BucketTree.java:109)
        at org.eclipse.core.internal.localstore.BucketTree.accept(BucketTree.java:76)
        at org.eclipse.core.internal.properties.PropertyManager2.deleteProperties(PropertyManager2.java:102)
        at org.eclipse.core.internal.properties.PropertyManager2.deleteResource(PropertyManager2.java:111)
        at org.eclipse.core.internal.resources.Resource.deleteResource(Resource.java:918)
        ... here goes the rest of the stack trace...
    

    After deleting this particular index file and restarting Eclipse, everything worked as before. Any feedback whether the suggestion worked is appreciated.

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

    just adding to the knowldege base. i've had this problem. restarting eclipse or windows did not fix it.

    deleting .metatdata/.lock in the parent directory after closing eclipse did fix the problem. iirc, sometimes you need to reboot windoze.

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

    It is a Windows 7 problem. We generate a lot of code here and face the same problem when generating code [two-step:

    1. XSL transformation and
    2. pretty-printing], one of the Windows processes, probably Explorer.exe, intervenes. This only happens one time out of 200.

    On Linux and Windows XP, we neither have the problems in Eclipse nor generating files.

    And we do face the problems even if running code generation and Eclipse as administratör.

    We've asked Microsoft for support, but the suggestion we've had so far is "Reboot!". Hopeless!

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

    It works for me:

    1. Close Eclipse.
    2. Remove from Eclipse Folder in your proyect, all the data inside classes.
    3. Open Eclipse.
    4. Team -> CleanUp
    0 讨论(0)
  • 2020-12-30 19:09

    Check if any other process is using a file within the target "bin" folder, and kill it. Typically this happens with other Java processes invoked from Eclipse.

    0 讨论(0)
提交回复
热议问题