I installed another application with TheBrain running. The new app added a folder to front of PATH, which had another version of advapi32.dll in it. I upgrade theBrain, whcih shut down and restarted and picked up the change to PATH and promptly failed. By running TheBrain under admin priviledge I saw the exception in the error file that it could not find something in this alternative DLL file. By moving the new program's folder to the end of PATH, Java now picks up the correct Win32 DLL.
One to watch for others!