How is it possible to read/write to the Windows registry using Java?
I prefer using java.util.prefs.Preferences class.
A simple example would be
// Write Operation
Preferences p = Preferences.userRoot();
p.put("key","value");
// also there are various other methods such as putByteArray(), putDouble() etc.
p.flush();
//Read Operation
Preferences p = Preferences.userRoot();
String value = p.get("key");