![]() |
How to read a registry key from Windows registry ?
Hi,
I need to read a registry in Windows and I wonder if anyone has faced this before. Right now the most simple way as I see it is to write a method in C and invoke it via. JNI. Have you faced this before ? Do you know if is there any available library to do this ? Thanks in advance, - Leny |
Re: How to read a registry key from Windows registry ?
Leny wrote:
> I need to read a registry in Windows and I wonder if anyone has faced > this before. > > Right now the most simple way as I see it is to write a method in C and > invoke it via. JNI. That or e.g. use an appropriate JNDI service provider: http://java.sun.com/products/jndi/serviceproviders.html > Have you faced this before ? Do you know if is there any > available library to do this ? How did your Google search turn out? /Thomas -- The comp.lang.java.gui FAQ: ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/...g/java/gui/faq |
Re: How to read a registry key from Windows registry ?
>I need to read a registry in Windows and I wonder if anyone has
>faced this before. An easy way is to launch the REG.EXE utility and capture the output : http://www.rgagnon.com/javadetails/java-0480.html Bye. -- Real Gagnon from Quebec, Canada * Looking for Java or PB snippets ? Visit Real's How-to * http://www.rgagnon.com/howto.html |
Re: How to read a registry key from Windows registry ?
This is a rather new problem for me as well so i don't know if this
works in your specific situation. but java.util.prefs.* Look at the api-spec and look at this link: http://www.javaworld.com/javaworld/j...eferences.html The nice thing with this is that your app remains portable. hope it helps /daniel >Hi, > > I need to read a registry in Windows and I wonder if anyone has faced >this before. > > Right now the most simple way as I see it is to write a method in C and >invoke it via. JNI. Have you faced this before ? Do you know if is there any >available library to do this ? > >Thanks in advance, > > - Leny > > > |
| All times are GMT. The time now is 04:11 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.