Menu

#24 Not working registry reading

open
nobody
None
5
2015-03-07
2010-03-14
Anonymous
No

Hello, here is stack trace:

Thread [main] (Stepping)
Reg.exec(String[]) line: 268
Reg.regExport(String, File) line: 298
Reg.read(String) line: 187
Reg.<init>(String) line: 69
RegistryHelper.getComputerName() line: 45
XMLHelper.<init>() line: 21
AppManager.<init>(Main) line: 20
Main.<init>() line: 50
Main.main(String[]) line: 223

It's stuck in here, I tried the code from examples on web:
void sample02() throws IOException
{
Reg reg = new Reg("HKEY_CURRENT_USER\\Control Panel");
Reg.Key cp = reg.get("HKEY_CURRENT_USER\\Control Panel");
Reg.Key sound = cp.getChild("Sound");
String beep = sound.get("Beep");

how come even the example doesn't work? what am I doing wrong? Windows 7, 64bit, EN

Discussion

  • Ivan SZKIBA

    Ivan SZKIBA - 2010-03-25

    Hmmm, it seem reg.exe running problem. I never used Windows 7, is there reg.exe in PATH ?

     
  • Michael Rudolf

    Michael Rudolf - 2015-03-07

    Duplicate of [#39]

     

    Related

    Bugs: #39


Log in to post a comment.