how to create registry key through java program?

前端 未结 3 1835
没有蜡笔的小新
没有蜡笔的小新 2020-12-21 04:32

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         


        
3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 05:26

    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");
    }
    

提交回复
热议问题