Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing Registry

 
Vaskar Dasgupta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way we can access the registry, as far as i know we cannot access the memory locations with java as it does not support pointers. Urgent reply expected.
Kindly reply to : d_vaskar.cgmaersk@maerskdata.dk
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Vaskar Dasgupta:
Is there any way we can access the registry, as far as i know we cannot access the memory locations with java as it does not support pointers. Urgent reply expected.
Kindly reply to : d_vaskar.cgmaersk@maerskdata.dk

If You mean the Windows registry You have to use JNI
Greetings
Karl
 
Vaskar Dasgupta
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the prompt reply.
Yeah i meant Windows Registry, i have never used JNI, can you explain as to how should i use it. Let me present you my exact requirement so that it becomes clear to you.
I want to write the following to the Windows Registry ( Using Java ) :
Region ( Datatype = String )
Centre ID ( Datatype = int)
Center Name (Datatype = String )
Once written I need to READ it later so as to modify it. To modify the values i have a swing Window with the above three labels, three textfields and two buttons namely OK and Cancel
 
surya kumar mp
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
I dont know your requirement, but as i know you can access windows registry with JNDI and offcource with JNI Also.
You can find the usefull information about the accessing widows registry with JNDI at the following site.
http://www.cogentlogic.com/jndi/
Originally posted by Vaskar Dasgupta:
Is there any way we can access the registry, as far as i know we cannot access the memory locations with java as it does not support pointers. Urgent reply expected.
Kindly reply to : d_vaskar.cgmaersk@maerskdata.dk

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic