-1

Can anyone tell me how can i create/add new sub key in a existing key of a registry and add DWord entry name with certain value using java?

For eg

I want to add HIMAL sub key in HKEY_CURRENT_USER\SOFTWARE\JAVASOFT\PREFS. After that it will look like this HKEY_CURRENT_USER\SOFTWARE\JAVASOFT\PREFS\HIMAL.And then add a new value.

THanks in advance

user1254261
  • 142
  • 2
  • 3
  • 12
  • Have you even checked SO for writing into the windows library? http://stackoverflow.com/questions/62289/read-write-to-windows-registry-using-java?rq=1 – Smutje Apr 30 '14 at 06:49
  • in that example createkey function in not creating the sub key.. – user1254261 Apr 30 '14 at 07:29

1 Answers1

0

There are multiple java libraries that allow access to Windows registry. You can find them easily.

Additionally you can execute command line utility reg or use code referenced from this article.

AlexR
  • 114,158
  • 16
  • 130
  • 208