Re: where is the java preferences file located



John B. Matthews wrote:

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! :-)


I personally would be very angry if an application would meddle in the
registry for anything then its own configuration.

I would consider it malware.

Explain what exactly you want to do, there are probably other ways to
achieve it.
--
Sabine Dinis Blochberger

Op3racional
www.op3racional.eu
.



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, but on Linux, it could store them in a file. ...
    (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 ... home dot woh dot rr dot com slash jbmatthews ...
    (comp.lang.java.help)
  • 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)
  • Re: .JAR question
    ... Now the program starts to launch, carries out the memory resettings to what ... Apple is of no help on this saying that they don't support java even though ... In fairness, the preferences file could be almost anywhere, and there's ... typically stored in your home folder under Library --> Preferences. ...
    (comp.sys.mac.system)
  • 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)