对于这个恼人的错误有什么解决办法吗?
我将 NetBeans 7.0 和 Glassfish 3.1 与 Spring 版本 3.0.2 结合使用,经常收到如下错误:
"someProjectName\nbproject\build-impl.xml:1060: 无法删除文件 SomeProjectname\build\web\ WEB-INF\lib\antlr-2.7.6.jar"
有人知道这可能是什么原因吗?
I am using NetBeans 7.0 and Glassfish 3.1 with Spring, version 3.0.2 and often I receive errors like this one:
"someProjectName\nbproject\build-impl.xml:1060: Unable to delete file SomeProjectname\build\web\WEB-INF\lib\antlr-2.7.6.jar"
Anyone have any ideas what could be the cause for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这不是一个错误,它可能由于多种原因而发生:
可能还有其他原因......但我通过消除上述三个条件多次解决了该问题。
看看它是否适合你。
It is a not a bug, It may happen due to a number of reasons:
There may be other reasons too...but I solved the problem on more than one occasions by eliminating the above three conditions.
See if it works for u.
除了 knurdy 的建议之外...您可能会发现 Unlocker 是解决此类问题的有用工具。仅当您在 Microsoft Windows 平台上工作时,我猜您会这样做。
On top of what of knurdy's suggested... You might find Unlocker a helpful tool in such problem. Only if you are working on Microsoft Windows platform, which I guess you do.
它可以工作。
It works.
似乎该文件已加载到服务器上,因此当前已被使用。您只需
停止服务器
>清理或清理并构建您的项目
,它将被删除。无需关闭 Netbeans 或终止 java.exe。Seems like the file is loaded on the server and hence been currently used. You just have to
stop the server
>clean or clean and build your project
and it will be removed. No need to close Netbeans or kill java.exe.如果您使用的是 Windows。转到任务管理器-->进程并杀死 java.exe 进程。如果该 jar 仍在内存中运行,它将解决问题。
If you are using Windows. Go to task manager-->Processes and Kill java.exe process there. it will solve the problem if that jar is still running in memory.