7

Recently I build an Java application. I use Java Preferences to store some information. When I ran my application in windows XP, the application run perfectly. I can store information and get the stored information. But when I ran it in Windows 7, Java Preference failed to store the information. Is there any solution?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Lhuqita Fazry
  • 291
  • 4
  • 12
  • 1
    Did you see any exception? How do you know that it did not work? – AlexR Aug 18 '11 at 14:12
  • I hope it has nothing to do with registry and program files virtualization. http://support.microsoft.com/kb/927387 – Rekin Aug 18 '11 at 14:12
  • yes, there is exception, but I forgot detail of exception. I am not running Win7 now. On Windows XP when I searched in the registry, I found the stored information. But i found nothing in window 7 – Lhuqita Fazry Aug 18 '11 at 14:17
  • I believe you go security exception. – AlexR Aug 18 '11 at 14:49

2 Answers2

4

Have you tried it with UAC off?

System preferences can't be set from Java without UAC off or UAC elevation.

Personal/User preferences CAN be.

Edit See my old question at: Is there a system-wide version of the Preferences API?

Community
  • 1
  • 1
Brian Knoblauch
  • 20,639
  • 15
  • 57
  • 92
1

where do you have these properties files? Isn't the problem just with lack of permissions? I regularly code on Windows Vista and except for occasional problem with permissions everything works as it should.

jirka.pinkas
  • 918
  • 6
  • 21