Recently I build an Java application. I use Java Preferences to store some information. W开发者_开发问答hen 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?
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?
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.
精彩评论