registry editing with java

how would you change a registry key value data using java? I simply want to change the desktop background under the current user by editing that reg key. And i also need to know if there is a way to see where the users windows directory is, for example, instead of saying C:\windows just something like %windir% (like in dos), just incase the users windows directory is under a different drive letter. Using all this i want to edit the HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper key to make the desktop picture change to,

ex. %windir%\Clouds.bmp . (C:\windows\Clouds.bmp). Any help would be greatly appreciated, even if there is a way to do this in any other programming language, it just needs to be done, thanks a lot.

kevin

[760 byte] By [kevinpriebe] at [2007-9-26 1:26:34]
# 1
Here is win registry to java bindings - > http://www.trustice.com/java/jnireg/
v.pavlov at 2007-6-29 1:09:40 > top of Java-index,Archived Forums,New To Java Technology Archive...