-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
Fix Understood
-
x86
-
windows_2000
###@###.### 2004-09-07
If you install on Win2K (no previous JRE installed), then log in as a user without administrator privileges, then run a java application which calls java.utils.prefs.Preferences.userNodeForPackage(any class), the preferences implementation for windows tries to create the systemRoot as well as the userRoot, but doesn't have privileges to create registry entries. The console or command prompt window has the error text
U:\BCC\nec\pipelineapp>java -version
java version "1.5.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode, sharing)
U:\BCC\nec\pipelineapp>java -cp . nz.co.nec.wlg.pipeline.ApplicationGui
7/09/2004 22:51:25 java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Everything still works OK, but this message is ugly.
If you run the application as an administrator, the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs
gets created, and the error message doesn't occur.
Once this has happened, the error message no longer appears for the non admin user either.
Suggestion : Since you have to be an administrator to install, add/create the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs
during installation in order to remove this ugly message for non admin users.
###@###.### 11/3/04 20:43 GMT
If you install on Win2K (no previous JRE installed), then log in as a user without administrator privileges, then run a java application which calls java.utils.prefs.Preferences.userNodeForPackage(any class), the preferences implementation for windows tries to create the systemRoot as well as the userRoot, but doesn't have privileges to create registry entries. The console or command prompt window has the error text
U:\BCC\nec\pipelineapp>java -version
java version "1.5.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode, sharing)
U:\BCC\nec\pipelineapp>java -cp . nz.co.nec.wlg.pipeline.ApplicationGui
7/09/2004 22:51:25 java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0
x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Everything still works OK, but this message is ugly.
If you run the application as an administrator, the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs
gets created, and the error message doesn't occur.
Once this has happened, the error message no longer appears for the non admin user either.
Suggestion : Since you have to be an administrator to install, add/create the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs
during installation in order to remove this ugly message for non admin users.
###@###.### 11/3/04 20:43 GMT