Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've added a jar in the extension folder of my JRE (lib/ext) in order to provide an extension code to my applications. Now I want to delete this jar, but I cannot. The error message says:

Cannot delete. It is being used by another person or program

BTW. My Java program is not running at the same time I want to delete the jar.

How can I remove this jar from the ext directory of the JRE?

share|improve this question

migrated from Jan 27 '13 at 4:31

This question came from our site for professional and enthusiast programmers.

Which OS do you use? – MrSmith42 Jan 26 '13 at 18:47
I am using windows xp sp2 in a virtual machine. – user1291235 Jan 26 '13 at 18:47
Are you sure you don't have an obscure process running? If you're using Windows, what does the processes window say (Ctrl+Shift+Esc and then the processes tab)? – 11684 Jan 26 '13 at 18:48
well there are a lot of processes running, i cannot even say which one is locking the jar file... – user1291235 Jan 26 '13 at 18:49
Use the software "Unlocker" for deleting such files. You can download it from here – Vishal K Jan 26 '13 at 19:01

Extended ProcessMonitor by Microsoft - is really great tool that could show you which process is using your particular file.

Btw: simplest way - rename your file to some other temporary name (it is possible under windows when file is already blocked by some other program), reboot computer, remove file with your 'temporary file name'.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .