Eclipse is holding file handles for JAR files open. It is making Git updates challenging. I am on the latest Eclipse Kepler and recently updated (Jan 2015).
It is similar to this issue: Unlink of file failed
The only way I seem to be able to fix it is by exiting out of Eclipse completely, and doing the git reset
or pull
from the command line, then re-launch Eclipse. Even closing the project in Eclipse doesn't work.
I have used procexp.exe
to see who is holding the file handle for the JAR open and unfortunately, it's Eclipse itself. More precisely, the javaw.exe
child process of eclipse.exe
. The app server is shut down.
Is there a better way to manage the project in Eclipse with EGit to avoid this problem?
Does anyone have a solution?
This is exceedingly annoying because it prevents me from using the IDE (or even just keeping the IDE open!!) when switching between branches that have different JAR file versions.