File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Reading Windows Registry Content through Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Reading Windows Registry Content through Java" Watch "Reading Windows Registry Content through Java" New topic

Reading Windows Registry Content through Java

Jithesh Kozhipurath
Ranch Hand

Joined: Aug 27, 2003
Posts: 76
I want to list out all the softwares installed in a machine with all the versions it has. Is there any possibility to read the registry content so that I can retrive the installed software details. If there is any, can I read these details in another machine in my network.

Thanks in advance.

Jithesh K
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

Java is supposed to be cross-platform so there is nothing in the API that lets you look at the Windows registry. There are several third-party solutions like ICE Engineering's JNIRegistry tool. As for reading that information across the network, you'd need to install your registry tool locally (signed applet, Java Web Start would do) and write JNI or custom networking code to move the information.

[How To Ask Questions On JavaRanch]
Harish Kashyap
Ranch Hand

Joined: Jun 14, 2000
Posts: 118
try exploring
java.util.prefs package

you can read/write entries to windows registry through java but upto some limit.....
I agree. Here's the link:
subject: Reading Windows Registry Content through Java
It's not a secret anymore!