title: how to create registry key through java program?
body: <p>I want to create registry key through java program to add the jar file in the start up.</p>
  
  <pre><code>RegistryKey r=new RegistryKey(RootKey.HKEY_CURRENT_USER,"Software/Microsoft/Windows/CurrentVersion/Run");
          r.createSubkey("sample");
  </code></pre>
  
  <p>But i got the error:</p>
  
  <pre><code>Exception in thread "main" java.lang.UnsatisfiedLinkError: ca.beq.util.win32.registry.RegistryKey.testInitialized()V
          at ca.beq.util.win32.registry.RegistryKey.testInitialized(Native Method)
  </code></pre>
  
  <p>How can i do that?<br>
  Thanks</p>