• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading Local Registry

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please tell me how to read the registry on the LOCAL machine. Everything I have seen so far onl pertains to remote objects. I can't imagine Java not having a facility to read the local registry on a workstation.
Please help....thanks.
 
Edward Man
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun's JDK is developed for cross-platforms. It does not provide Windows specific features to read Windows's registry. You have to use Microsoft's Visual J++. It comes with Windows-specific foundation classes.
Alternatively, you can use JNI. Write the registry access functions as a DLL and export those functions. Make a native method call in the Java program to access the Windows registry.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't had a need to do anything like this but I imagine that somewhere out there someone has already written just such a DLL. Maybe an internet search will turn something up.
 
Bilal Muddassir
Greenhorn
Posts: 1
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!