在Java(TM)Platform SE二进制文件中打开 [英] Open in Java(TM) Platform SE binary

查看:401
本文介绍了在Java(TM)Platform SE二进制文件中打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图删除一个文件,我有两个,一个稍微更改,所以我可以删除旧文件并将其替换为我更改的新文件。当我尝试删除该文件时,我收到错误消息正在使用的文件,其中表示无法完成操作,因为该文件是在Java(TM)Platform SE二进制文件中打开的。

I tried to delete a file that I have two of, one slightly changed, so I could delete the older one and replace it with the new one I changed. When I tried to delete the file I got the error message 'file in use' where it said the action can't be completed because the file is open in Java(TM) Platform SE binary.

如何关闭它?

推荐答案

这是有效的对我来说(使用Windows)。它与ali haider评论的程序基本相同,但有更多细节...

This is what worked for me (using Windows). It is basically the same procedure as commented by ali haider, but with more details...

使用Windows命令提示符:

Using Windows command prompt:

tasklist | findstr java

(findstr是Windows的命令行实用程序,类似于Linux中的grep)

("findstr" is a command line utility for Windows similar to "grep" in Linux)

搜索任何包含'java'的行并记下java进程的PID。

Search for any lines with 'java' and note the PID of the java process.

taskkill /F /PID "PID_OF_JAVA_PROCESS"

其中应更换PID_OF_JAVA_PROCESS使用实际的PID编号。

where "PID_OF_JAVA_PROCESS" should be replaced with actual PID number.

结果:

SUCCESS: The process with PID "PID_OF_JAVA_PROCESS" has been terminated.

对每个正在运行的java进程重复此操作。现在你应该能够得到你想要的文件了!

Repeat for each java process that is running. Now you should be able your desired file!

如果你需要Linux的指令(比如ps,kill等),请告诉我,但是大多数Linux用户可能都知道这些......

Let me know if you need instructions for Linux (i.e. ps, kill, etc.), but probably most Linux users know these...

这篇关于在Java(TM)Platform SE二进制文件中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆