File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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.
Regards,
aakash
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
You need to read up on JNI
http://java.sun.com/docs/books/tutorial/native1.1/index.html
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.
http://www.bloodshed.net/
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Read values from Registry