Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading a particular entry in Registry?  RSS feed

 
Praveen Kumar Jayaram
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am trying to read an key "TMergePath" present in the location:
"HKEY_LOCAL_MACHINE\Software\TortoiseSVN\" from Windows registry.

Please someone suggest how to do in Java??

Praveen
[ August 25, 2008: Message edited by: Praveen Kumar Jayaram ]
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to use a third party library for this, since the registry is a Windows only phenomenon. As such, it's not part of Sun's Java API.

Moving to Other APIs.
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write code in C for calling windows API

call that code from java with the help of JNI

just take JNI Samples and modify them, you can read registry by calling RegGetValue windows API
 
Jeong hoon Kang
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
consult this page.
http://www.rgagnon.com/javadetails/java-0480.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!