I used google.com and that fragment of the error message to read discussions about this. They note that the Windows Installer may be the issue. Here's the article with the utility to try.
http://support.microsoft.com/kb/q290301
Sorry if this doesn't help, but I don't have much to work with here.
Bob
I'm running both IE Explorer and Firefox under XP SP2.
A couple of months ago, the latest version of Java stopped working on IE; Firefox was fine. This morning I tried downloading and installing the most recent version (JRE 1.5); I keep getting error messages telling me the "directory is locked" and installation cannot continue. I uninstalled Jave umpteen times, shut down my browsers AND my ZoneAlarm and continue to get the "Directory is Locked. . ." message. I've even CHANGED the directory destination in a manual installation, and still get the error message.
Now, I've really messed things up. Java won't even work under Firefox.
What should I do?
W!

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic