无法删除 /.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/appname/WEB-INF/lib.可能被其他进程锁定

2022-09-04 06:41:21

我正在尝试运行 Web 应用。一开始进展顺利,但我不得不从项目文件夹中删除一些jar。我没有使用eclipse删除jars。所以,我开始得到这些错误:

Publishing failed with multiple errors
Could not delete C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF/lib. May be locked by another process.
Could not delete C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF. May be locked by another process.

我试图删除我的整个项目并再次编码。但它不起作用。我也删除了Tomcat服务器,但它再次不起作用。然后我意识到要“修复”这个问题,我必须删除这个文件夹:

C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/fj21-tarefas/WEB-INF.

清理服务器和项目。但是当我关闭eclipse并再次打开时,我得到同样的错误,那么我必须做这个过程。

这里有人知道如何修复这种雄猫错误吗?


答案 1

只需删除服务器,然后再次添加,然后重新启动 eclipse。它对我有用。


答案 2

关闭日食并转到下面的位置(取决于您的系统位置)

C:/Users/maniceto/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/

并删除目录现在启动日食,它将正常工作。tmp0


推荐