0

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?

8
  • Which OS do you use?
    – MrSmith42
    Commented Jan 26, 2013 at 18:47
  • I am using windows xp sp2 in a virtual machine.
    – user1291235
    Commented Jan 26, 2013 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
    Commented Jan 26, 2013 at 18:48
  • well there are a lot of processes running, i cannot even say which one is locking the jar file...
    – user1291235
    Commented Jan 26, 2013 at 18:49
  • 2
    Use the software "Unlocker" for deleting such files. You can download it from here filehippo.com/download_unlocker
    – Vishal K
    Commented Jan 26, 2013 at 19:01

1 Answer 1

0

Extended ProcessMonitor by Microsoft - http://technet.microsoft.com/en-us/sysinternals/bb896645 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'.

You must log in to answer this question.

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