From owner-freebsd-java@FreeBSD.ORG Fri Aug 29 14:43:30 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EA6916A4BF; Fri, 29 Aug 2003 14:43:30 -0700 (PDT) Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC49843F75; Fri, 29 Aug 2003 14:43:29 -0700 (PDT) (envelope-from g.w.k@web.de) Received: from [217.232.170.140] (helo=[192.168.0.3]) by smtp.web.de with asmtp (TLSv1:DES-CBC3-SHA:168) (WEB.DE 4.99 #448) id 19sr1k-0002SY-00; Fri, 29 Aug 2003 23:43:28 +0200 From: "Georg-W. Koltermann" To: deischen@freebsd.org In-Reply-To: References: Content-Type: text/plain Message-Id: <1062193328.1241.23.camel@hunter.muc.eu.mscsoftware.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Fri, 29 Aug 2003 23:42:09 +0200 Content-Transfer-Encoding: 7bit Sender: g.w.k@web.de cc: java@freebsd.org Subject: Re: Native jdk1.4.1 working X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2003 21:43:30 -0000 This may have been explained already and I missed it. In case it wasn't: You are using system preferences in the java.util.prefs API. System preferences by default are persisted somewhere in $JAVA_HOME. chown(1) $JAVA_HOME to your user, run the program once again and do a find(1) for the new file(s). You may then chown $JAVA_HOME back to bin and just leave the preferences directory writable by you (or world). I don't know what the proper fix is. The linux JDK 1.4.2 from ports has the same behavior. -- Regards, Georg. On Do, 2003-08-28 at 21:37, Daniel Eischen wrote: > So we've got this home-grown java application here at work > and I'm now running it under native jdk1.4.1 and it works. > Great job guys! > > A question, though. When the application first started > I get these messages: > > Aug 28, 2003 11:14:40 AM java.util.prefs.FileSystemPreferences$3 run > WARNING: Could not create system preferences directory. System preferences are unusable. > Aug 28, 2003 11:14:40 AM java.util.prefs.FileSystemPreferences$5 run > INFO: Created user preferences directory. > > After that, at every 30 second or so interval, I get: > > Aug 28, 2003 11:15:12 AM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode > WARNING: Could not lock System prefs.Unix error code 671660902. > Aug 28, 2003 11:15:12 AM java.util.prefs.FileSystemPreferences syncWorld > WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. > Aug 28, 2003 11:15:42 AM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode > WARNING: Could not lock System prefs.Unix error code 671660902. > Aug 28, 2003 11:15:42 AM java.util.prefs.FileSystemPreferences syncWorld > WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock. > > Last 4 lines repeat every 30 seconds. > > What is it trying to tell me?