File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Accessing Registry Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Accessing Registry" Watch "Accessing Registry" New topic
Author

Accessing Registry

Vaskar Dasgupta
Greenhorn

Joined: Jul 20, 2001
Posts: 25
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

Kindly reply back.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jul 20, 2001
Posts: 25
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

Joined: Sep 30, 2001
Posts: 13
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

 
 
subject: Accessing Registry
 
Similar Threads
UDDI Registries
java.rmi.server.ExportException: Port already in use: 10344;
Diff. between Naming and Registry.
Add RMI Interface to Existing Application
JNDI basics