From owner-freebsd-java@FreeBSD.ORG Wed Sep 3 21:41:59 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 AC50F16A4BF for ; Wed, 3 Sep 2003 21:41:59 -0700 (PDT) Received: from mgr3.xmission.com (mgr3.xmission.com [198.60.22.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id B698443FA3 for ; Wed, 3 Sep 2003 21:41:58 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr3.xmission.com with spam-scanned (Exim 3.35 #1) id 19ulwT-00035X-03 for java@freebsd.org; Wed, 03 Sep 2003 22:41:58 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr3.xmission.com with esmtp (Exim 3.35 #1) id 19ulw8-0002uR-03; Wed, 03 Sep 2003 22:41:47 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.12.9/8.12.9) with ESMTP id h844m9C5037770; Wed, 3 Sep 2003 22:49:03 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.9/8.12.9/Submit) id h844lXMM037667; Wed, 3 Sep 2003 22:47:33 -0600 (MDT) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Wed, 3 Sep 2003 22:47:19 -0600 From: Greg Lewis To: "Georg-W. Koltermann" Message-ID: <20030904044719.GA35997@misty.eyesbeyond.com> References: <1062193328.1241.23.camel@hunter.muc.eu.mscsoftware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1062193328.1241.23.camel@hunter.muc.eu.mscsoftware.com> User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-9.9 required=8.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT,X_AUTH_WARNING version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: deischen@freebsd.org 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 04:41:59 -0000 On Fri, Aug 29, 2003 at 11:42:09PM +0200, Georg-W. Koltermann wrote: > 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. The proper fix is to do this in the port. If you look at the raw download for the Linux JDK 1.4.2 (needs upgrading to 1.4.2_01 btw) install its a self extracting archive preceded by a shell script. We strip the shell script and unpack, but then don't perform the actions the shell script portion of the install does. One of these actions is to create the system preference directory and appropriate files. We really need to preserve the shell script and run it during post-install or write our own stuff to perform an equivalent set of actions. The native 1.4.1 port needs to perform similar actions to create its system preference stuff. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org