File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes can't delete installed folder Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » General Computing
Reply Bookmark "can Watch "can New topic
Author

can't delete installed folder

FY Hsieh
Ranch Hand

Joined: Aug 07, 2006
Posts: 73
I installed an old version of GlassFish application server. I have uninstalled it and installed a new version in some other directory. For the old version, although I have uninstalled it, the original installed folder c:\GlassFish is still there. SO I tried to delete this folder. However, it can't be completed deleted. Most of the sub folders under "C:\GlassFish" are deleted, but for 'lib" it can't be deleted. Windows XP pops pop up showing "Access denied --- make sure the disk is not full and the file is not being used." Actually nothing is using it (it has been uninstalled already), I tried to open the "property" of the folder and uncheck the "read-only" check-box, it did not help either.

Help me !
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4489

Most likely glassfish, or some part of it, is registered as a service and is still running.

Have you rebooted and tried deleting it again?

If that does not work, grab Process Monitor from sysinternals and configure it to monitor the lib directory. I should be able to tell you what process is using the directory, and you can then kill that process.

There is also a slight possibility that your anti-virus software has the directory locked. Happens to me occasionally when deleting software.

This message was edited 1 time. Last update was at by Peter Johnson



JBoss In Action
FY Hsieh
Ranch Hand

Joined: Aug 07, 2006
Posts: 73
I restarted PC and I was able to delete it.

Thanks for help.
 
 
subject: can't delete installed folder
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com