I want to create registry key through java program to add the jar file in the start up.
RegistryKey r=new RegistryKey(RootKey.HKEY_CURRENT_USER,\"Software/Mi
Adding jregistrykey.dll in my project didn't work for me. I included this block in my class and it worked.
static { System.load("path\\to\\jregistrykey.dll"); }