Native jdk1.4.1 working
Greg Lewis
glewis at misty.eyesbeyond.com
Wed Sep 3 21:41:59 PDT 2003
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 at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the freebsd-java
mailing list