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: 4875

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.


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.
 
IntelliJ Java IDE
 
subject: can't delete installed folder
 
Threads others viewed
Eclipse is running in a JRE, but a JDK is required
Error 1723 when trying to uninstall jdk java 1.6 update 24 and unable to install again.
Problem un installing java version
two jre folder
not deleted this folder and is pointing to old sdk, the avd i guess in this folder, what to suggest
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture