Two Laptop Bag
The moose likes Java in General and the fly likes Read values from Registry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Read values from Registry" Watch "Read values from Registry" New topic

Read values from Registry

aakash bhatt
Ranch Hand

Joined: Jan 09, 2003
Posts: 182
I have to make an application in Java which will be deployed in Windows platform.
My app needs to read some value from registry . Hoe do I read windows registry value in Java.
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
You need to read up on JNI
Then you need to find yourself some c/c++ code that reads values from the windows registry (search google or similar and I'm sure you'll find something).
Also dev-c++ is a nice free c/c++ compiler/ide.
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
Write Windows Specific code using C or C++ or VC++or as they can interact with WIndows Internals, and access that piece of code using JNI.
I agree. Here's the link:
subject: Read values from Registry
It's not a secret anymore!