Registry Key entry and access
1 posts in topic
Flat View  Flat View

Posted By:   joseph_george
Posted On:   Tuesday, April 17, 2001 09:17 PM

How can I enter a key in registry from a Java Application and access it back

Re: Registry Key entry and access

Posted By:   Hans_Chicoine  
Posted On:   Thursday, April 19, 2001 07:42 AM

Hi joseph

I did the creation part in a simple way :

1- I wrote a bit of code that generates a proper *.reg file

2- ... Then i ran regedit this way : Process proc = Runtime.getRuntime().exec("regedit /s " + registryFileName);
if (proc.waitFor() != 0) {
throw new IOException("Problem with regedit");


/s= silencious ... it seems.

Otherwise, you if realy need a two way relation with your registry key, there seems to be some JNI apis that do that (I never tried them).


About | Sitemap | Contact