Read/write to Windows registry using Java

前端 未结 24 1562
日久生厌
日久生厌 2020-11-21 05:45

How is it possible to read/write to the Windows registry using Java?

24条回答
  •  礼貌的吻别
    2020-11-21 06:21

    The Preferences API approach does not give you access to all the branches of the registry. In fact, it only gives you access to where the Preferences API stores its, well, preferences. It's not a generic registry handling API, like .NET's

    To read/write every key I guess JNI or an external tool would be the approach to take, as Mark shows.

提交回复
热议问题