Java Preferences and Windows 7 Restricted Users

"A. Kevin Baynes" <[email protected]>
Newsgroups gmane.org.user-groups.trijug.juglist
Message-ID <[email protected]>
I've just started testing a Java Desktop app on Windows 7. By default, the
app executes as a restricted user (using 1.6 JRE). When the app runs, one of
the first things it does is read from the Preferences API to retrieve the
apps settings.  I get an 'access denied'
error,  java.lang.SecurityException: Could not open windows registry node
Software\JavaSoft\Prefs at root 0x80000002: Access denied. The preferences
back to the Windows Registry, as indicated in the error.

This is definitely due to the Win 7 Access Control settings and executing as
a restricted user. I can 'Run As Administrator' on the app and it will get
past this, but I'm trying to make this app work even for restricted users.

It is interesting to me that I haven't found any recent chatter about this
on the web. I've been trying various googles for a day or so now and can't
find others with the problem. The lack of chatter makes me think I may be
missing something... but I don't know what I don't know... so I'm tossing
this out to the group to see if any of you may have any insight.

It seems that Preferences should be accessible without being an admin...
sort of defeats the point of the API if basic apps can't store settings.

I could write my own implementation of preferences and back to a file and
store that file in some central place. I know, but I'd rather not.

-- 
A. Kevin Baynes

He who laughs last thinks slowest.

_______________________________________________
Juglist mailing list
[email protected]
http://trijug.org/mailman/listinfo/juglist_trijug.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.