Re: Exception: java.io.UnixFileSystem.createFileExclusively(Native Method)
Subject : Re: Exception: java.io.UnixFileSystem.createFileExclusively(Native Method)
From: "Shawn Erickson" <email@hidden >
Date: Tue, 2 May 2006 16:07:58 -0700
Delivered-to: email@hidden
Delivered-to: email@hidden
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fisk4vxrkced2ZtcpuFmEE+qKZdVBxw5q8JaCJMVqBE2Et5ibWj2mCTUqzzWka529JvTfSY4exqYRgygTsVfYjhzObyi/SJu3fyZtVo8VzvtPvw8kSZhs5GvmapIY5ZkwvcgN5O2oN/ADsJaKLxUga9U4oTM8BjRW0id/9KC/WY=
On 5/2/06, Mohsan Khan <email@hidden> wrote:
This will create the prefs file in the same dir as the app, does this mean
the dir was locked or some permission issue?
It is not normal for a Mac application to save its preference next to
the application itself (see [1]). On Mac OS X a user may be able to
run an application but not have write access to the directory contains
the application (often /Applications).
If you use Java's preferences API it should do the right thing for you
(use the user's preferences directory).
-Shawn
[1] <http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSystem/Articles/LibraryDirectory.html >,
<http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/UserPreferences.html >
and <http://developer.apple.com/documentation/Java/Reference/1.4.2/appledoc/api/com/apple/eio/FileManager.html#findFolder (short,%20int,%20boolean)>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.