Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Access Windows Registry???

 
Tejas Tambe
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to access the windows registry using Java.
Actually, I want to find out the list of packages installed on any machine on the network.
Can anybody guide me ???
Thanx in advance !!!
Tejas
 
Altaf Ahmad
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe you'll be able to access registry values that were written by Java programs relatively easily. I read that to access the entire registry, you'll need to interface with an external C/C++ program which will have to read and provide it to you.
I believe this is because the windows registry is an operating system specific feature, and Java on its own won't let you do much that ties down code to specific operating systems.
 
Steve Deadsea
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are libraries that will allow this:
http://www.trustice.com/java/jnireg/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic