How is it possible to read/write to the Windows registry using Java?
As has been noted, the Preferences API uses the registry to store preferences, but cannot be used to access the whole registry.
However, a pirate called David Croft has worked out that it's possible to use methods in Sun's implementation of the Preferences API for reading the Windows registry from Java without JNI. There are some dangers to that, but it is worth a look.