pofpof98
asked on
How to write in the windows Registry using java?
Hello
Using jniwrapper, I can read some information in the windows registry but
I'd like to know if it is possible to write in the windows registry.
If yes, How it is posiible and can I get a little example?
Thanks
Regards
AC
Using jniwrapper, I can read some information in the windows registry but
I'd like to know if it is possible to write in the windows registry.
If yes, How it is posiible and can I get a little example?
Thanks
Regards
AC
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
RegSetValueEx is the Win32 function that allows you to write to the system registry.
Relevant MSDN links, including an example:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/regsetvalueex.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/adding_a_source_to_the_registry.asp
Relevant MSDN links, including an example:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/regsetvalueex.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/adding_a_source_to_the_registry.asp
pofpof98,
Did you have any issues with the pure java approach?
Did you have any issues with the pure java approach?
See http://javaalmanac.com/egs/java.util.prefs/BasicGetSet.html