This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

Reading Windows Registry Content through Java

Jithesh Kozhipurath
Ranch Hand

Joined: Aug 27, 2003
Posts: 76
Hi,
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


Jithesh K
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8914
    
    8

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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: http://aspose.com/file-tools
 
subject: Reading Windows Registry Content through Java