Open in Java(TM) Platform SE binary

user1642596 picture user1642596 · Sep 3, 2012 · Viewed 101.5k times · Source

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.

How do I close it?

Answer

robguinness picture robguinness · Feb 14, 2013

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

Using Windows command prompt:

tasklist | findstr java

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

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

taskkill /F /PID "PID_OF_JAVA_PROCESS"

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

Result:

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

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

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