Re: where is the java preferences file located



In article <488a3481$0$3095$7836cce5@xxxxxxxxxxxxx>,
Daniel Pitts <newsgroup.spamfilter@xxxxxxxxxxxxxxxxxxx> wrote:

epicwinter wrote:
I am using java preferences. I want to be able to clear the
preferences completely, but i can't figure out where the java
preferences are physically stored on the file system. I want to just
delete them all. Does anyone know where the java preferences are
stored and how they can be deleted?
It is system dependent. In windows, it might store them in the registry,
but on Linux, it could store them in a file. It might be implemented to
store them in a database instead.

If I'm reading the javadocs correctly, you could use
Preferences.systemRoot().removeNode().

I think that would apply all users' Java preferences, as well as throw
an exception:

<http://java.sun.com/javase/6/docs/api/java/util/prefs/Preferences.html#r
emoveNode()>

You'll understand if I'm reluctant to try it! :-)

--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews
.



Relevant Pages

  • Re: where is the java preferences file located
    ... preferences are physically stored on the file system. ... Does anyone know where the java preferences are ... In windows, it might store them in the registry, ...
    (comp.lang.java.help)
  • Re: where is the java preferences file located
    ... preferences are physically stored on the file system. ... Does anyone know where the java preferences are ... In windows, it might store them in the registry, but on Linux, it could store them in a file. ...
    (comp.lang.java.help)
  • Re: Document Properties -- can they be eliminated?
    ... And the visible fields are not the only ones that ... "Last saved by" is a particular worry: that comes from the File System. ... Under the Word -> Preferences menu, ... regarding Document Properties privacy. ...
    (microsoft.public.mac.office.word)
  • Re: Excel for Mac SR1 installed on MacBookPro wont automatically calculate
    ... preferences", what is set as decimal point separator - but do not relly on ... I'm desperately longing for DOT as decimal point separator - all others ... then numbers and excel will not calculate. ... Cells with the formulas formatted as Text is one possible cause. ...
    (microsoft.public.mac.office.excel)
  • Re: Save user data where?
    ... Is there any nice mechanism in Java that puts such info into an ... You can get a handle to the user's preferences by: ... Java keeps the user's preferences in a platform-specific place: ... in a certain hidden file in the user's home dir. ...
    (comp.lang.java.programmer)