Re: Java Preferences and Windows 7 Restricted Users

"A. Kevin Baynes" <[email protected]>
Newsgroups gmane.org.user-groups.trijug.juglist
Message-ID <[email protected]>
Thanks for the response. I went on a week-long ski vacation after posting
the question and am just now digging out enough to comb through my older
emails.

My application uses 'Preferences.systemNodeForPackage(class)'. Your previous
post made the distinction between SystemRoot and UserRoot... following that
line, I see that I can use 'Preferences.userNodeForPackage(class)'.

I'll try the userRoot and see if that gets me around my problem. It looks
like that may be exactly what I needed.

Thanks!

Kevin Baynes

On Tue, Feb 23, 2010 at 11:24 PM, Pete Soper <[email protected]> wrote:

> I confirmed that this is a "system Preferences" vs "user Preferences"
> issue. An unprivileged user can't modify "system Preferences." If the
> app can't get along with user prefs and/or treating system prefs as
> read-only you may have a real problem. Also, you can't cleanly handle
> the error condition that happens when an unprivileged user tries to
> modify a system preference on Linux. On Windows the registry msg comes
> out, period, but you can catch the exception and add a little grace to
> the situation. But on Linux the runtime spews a msg and then terminates
> the process: control never gets back to the exception handler. That's
> regrettable.
>
> This API was released in Java 1.4 ("Merlin") in late 2001 or early 2002.
> I helped train Sun system engineers about Preferences and other features
> like NIO and Assertions and have to say that I didn't see a lot of
> traffic about Preferences and Assertions subsequently. Poking around
> earlier I noticed that Apple seems to have embraced Preferences for
> various handy features with their Java implementation on Mac OS X.
>
> -Pete
>
>
> _______________________________________________
> Juglist mailing list
> [email protected]
> http://trijug.org/mailman/listinfo/juglist_trijug.org
>



-- 
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.