how to create registry key through java program?
Posted
by Arivu2020
on Stack Overflow
See other posts from Stack Overflow
or by Arivu2020
Published on 2010-04-13T06:33:33Z
Indexed on
2010/04/13
6:42 UTC
Read the original article
Hit count: 596
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/Microsoft/Windows/CurrentVersion/Run");
r.createSubkey("sample");
But i got the error:
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)
How can i do that?
Thanks
© Stack Overflow or respective owner