Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com 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
2  
Use the software "Unlocker" for deleting such files. You can download it from here filehippo.com/download_unlocker –  Vishal K Jan 26 '13 at 19:01

1 Answer 1

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'.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.