Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Read windows DWORD registry value

807580Sep 28 2009 — edited Sep 29 2009
Hi,

I found many sample code like this one on the internet

http://www.tactika.com/realhome/javadetails/java-0630.html
// http://javabyexample.wisdomplug.com/java-concepts/34-core-java/62-java-registry-wrapper.html
// http://www.snipcode.org/java/1-java/23-java-class-for-accessing-reading-and-writing-from-windows-registry.html
// http://snipplr.com/view/6620/accessing-windows-registry-in-java/

showing how to read a string registry value (using private method of the jdk through reflection)

But trying to read a DWORD value, program fails (return null).

Any one able to achieve that ?
(I need read and write DWORD key value)

thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2009
Added on Sep 28 2009
10 comments
398 views