tags:

views:

91

answers:

1

Can you please tell me, if i use preference API and store user or system preferences where they will be stored in windows/unix

+4  A: 

For Windows systemRoot and userRoot are stored in HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs and HKEY_CURRENT_USER\Software\JavaSoft\Prefs respectively.

For Unix systemRoot and userRoot are stored in "user.home" + ".java/.userPrefs" and "/etc/.java" respectively.

Note that for Unix the locations can be changed by specifying "java.util.prefs.userRoot" and "java.util.prefs.systemRoot" properties

n002213f