Writin to windows registry

hai,

I am tryng to write installation for an application,which require to set some values in registry using java program.

I have tried using Preference class

java.util.prefs

that'll allow you to write keys and values under the keys

HKEY_LOCAL_MACHINE/JavaSoft/Prefs

HKEY_CURRENT_USER/JavaSoft/Prefs

But i want to write under

HKEY_LOCAL_MACHINE/software/path

Please anyone help me

thank you

prakash

[475 byte] By [Prakash_Halana] at [2007-11-26 17:29:43]
# 1
> But i want to write under > > HKEY_LOCAL_MACHINE/software/pathYou can't use preferences for that.Google for a 3rd party library which has native code and lets you write to the registry.Kaj
kajbja at 2007-7-8 23:57:40 > top of Java-index,Java Essentials,Java Programming...
# 2
I think you can work around, writing a .reg with the entries for the registry file and then call a System.exec on that.Manuel Leiria
manuel.leiriaa at 2007-7-8 23:57:40 > top of Java-index,Java Essentials,Java Programming...