ThisThe Preferences API approach does not give you access to all the branches of the registry. ToIn fact, it only gives you access to where the Preferences API stores its, saywell,
HKEY_CLASS_ROOT the easiest way to write would be with preferences. It's not a generic registry handling API, like .reg file.NET's
To read/write every key I guess JNI or an external tool would be the approach to take, as Mark shows.