Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2003 22:47:19 -0600
From:      Greg Lewis <glewis@misty.eyesbeyond.com>
To:        "Georg-W. Koltermann" <g.w.k@web.de>
Cc:        java@freebsd.org
Subject:   Re: Native jdk1.4.1 working
Message-ID:  <20030904044719.GA35997@misty.eyesbeyond.com>
In-Reply-To: <1062193328.1241.23.camel@hunter.muc.eu.mscsoftware.com>
References:  <Pine.GSO.4.10.10308281531530.4610-100000@pcnet5.pcnet.com> <1062193328.1241.23.camel@hunter.muc.eu.mscsoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030904044719.GA35997>