From owner-freebsd-java@FreeBSD.ORG Thu Sep 4 13:21:54 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 0FD1E16A4BF for ; Thu, 4 Sep 2003 13:21:54 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id D469443FA3 for ; Thu, 4 Sep 2003 13:21:50 -0700 (PDT) (envelope-from gwk@rahn-koltermann.de) Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19v0c0-0000WJ-00; Thu, 04 Sep 2003 22:21:48 +0200 Received: from [217.232.128.105] (helo=[192.168.0.3]) (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 19v0c0-0002W4-00; Thu, 04 Sep 2003 22:21:48 +0200 From: "Georg-W. Koltermann" To: Ernst de Haan In-Reply-To: <200309041108.44760.ernst.dehaan@nl.wanadoo.com> References: <1062193328.1241.23.camel@hunter.muc.eu.mscsoftware.com> <20030904044719.GA35997@misty.eyesbeyond.com> <200309041108.44760.ernst.dehaan@nl.wanadoo.com> Content-Type: text/plain; charset=iso-8859-15 Message-Id: <1062706874.886.27.camel@hunter.muc.eu.mscsoftware.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Thu, 04 Sep 2003 22:21:14 +0200 Content-Transfer-Encoding: quoted-printable 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: Thu, 04 Sep 2003 20:21:54 -0000 On Do, 2003-09-04 at 11:21, Ernst de Haan wrote: > I could use a suggested patch for this *hint* *hint* :-) >=20 > Ernst Not really a patch, but from looking at the shell script of the Linux distribution I see they are creating a hierarchy like the following: $ ls -lRa $JAVA_HOME/jre/.systemPrefs total 4 drwxr-xr-x 2 bin bin 512 4 Sep 22:01 . drwxrwxrwt 5 bin bin 512 4 Sep 22:00 .. -rw-r--r-- 1 bin bin 0 4 Sep 22:00 .system.lock -rw-r--r-- 1 bin bin 0 4 Sep 22:00 .systemRootModFile $ (The owner/group above was my choice, the Linux script leaves these default so they would probably be root:root.) Indeed, when I create these files by hand in the native 1.4.1 JDK, I don't get any errors any more from programs trying to modify system preferences. They just run and silently ignore the fact that the system preferences are not writable, which is probably the proper behavior for any non-Windows system. As a side-note, the Linux JDK script also sets up the user's .mailcap and .mime.types to include the mime type for Java Web Start if it can write to those files. This is only done for $HOME, i.e. is does not make much sense for a port/package which will usually be installed by root for system-wide use. We might find a system-wide MIME configuration file and edit that instead. Sorry to be of not much help here, there's only 24 hours in a day but you know that already. --=20 Gr=FC=DFe, Georg.