Results 1 to 3 of 3
  1. #1
    JerryAgin is offline Member
    Join Date
    Jan 2011
    Posts
    5
    Rep Power
    0

    Question Failure of Preferences API under OSX

    I'm seeing an apparent failure of the Java Preferences API. A user has loaded my application onto two different OSX computers. One one computer, Preferences.put() and Preferences.get() function as they should but on the other computer, information saved in one session has disappeared when the program is invoked a second time.

    My application is distributed as a .JAR file. I have over 300 registered users on Windows and OSX, and probably 10 times that number who have not bothered to register. This is the first I'm hearing of such a problem.

    Has anyone run into such a situation before? Or is there a better forum to post this question on?

    Jerry

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,863
    Rep Power
    19

    Default Re: Failure of Preferences API under OSX

    Check Java versions.
    If they're the same then I would suggest it's something about the setup on the two machines rather than Java.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,383
    Blog Entries
    7
    Rep Power
    20

    Default Re: Failure of Preferences API under OSX

    On an MS Windows machine those preferences are stored in the registry database; on Unix machines those preferences are stored as XML files starting in the user's home directory or above (for the system preferences). Check if the user has write rights for those directories.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Eclipse: cannot port preferences
    By StateMachine in forum New To Java
    Replies: 0
    Last Post: 01-12-2012, 12:32 PM
  2. java.util.Preferences
    By jon80 in forum New To Java
    Replies: 0
    Last Post: 06-06-2009, 11:28 PM
  3. scripting preferences import
    By MikeW in forum Eclipse
    Replies: 2
    Last Post: 07-18-2008, 03:18 PM
  4. Replies: 0
    Last Post: 07-07-2008, 04:48 PM
  5. JFace Preferences Demonstration
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-07-2008, 04:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •