Developers, Developers, Developers! Maksim Sorokin IT Blog


Working with Windows Registry in Java

There are commercial and free libraries which enable a possibility to work with Windows registry from Java. For example, there is nice, simple, free, but old jRegistryKey library. The problem is that it is gpl and works with additional dll file. It is under LGPL.

However, we can read and write to Windows Registry without additional libraries and any sort of JNI. First, check out this:
And here are some examples how guys work with that:
A bit hacky and works only with REG_SZ. But often that is enough!

Tagged as: , Comments Off
Comments (0) Trackbacks (1)

Leave a comment