ports/56928 - jce-aba port should install to $JAVA_HOME/jre/lib/ext

Greg Lewis glewis at eyesbeyond.com
Mon Sep 29 19:00:37 UTC 2003


The following reply was made to PR ports/56928; it has been noted by GNATS.

From: Greg Lewis <glewis at eyesbeyond.com>
To: Edwin Groothuis <edwin at freebsd.org>
Cc: freebsd-ports-bugs at freebsd.org, freebsd-gnats-submit at freebsd.org,
	greg at greg.rim.or.jp
Subject: Re: ports/56928 - jce-aba port should install to $JAVA_HOME/jre/lib/ext
Date: Mon, 29 Sep 2003 12:56:22 -0600

 On Mon, Sep 29, 2003 at 04:50:22AM -0700, Edwin Groothuis wrote:
 >  Dear maintainer,
 >  
 >  Can you give your opinion about this PR:
 >  	http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/56928
 
 I'm not the maintainer, but I'll give my opinion anyway :).
 
 ${JAVAJARDIR} (which is where the port currently installs the JAR file)
 is the official, blessed bsd.java.mk place for JARs.  Installing in
 ${JAVA_HOME}/jre/lib/ext is wrong for a few reasons:
 
 1. It only works for a single JDK/JRE.  Given we have around a dozen of
    these now, this is bad.
 2. This scheme doesn't handle different versions of the same package.
    The JVM will grab the first JAR it finds with the classes in it,
    whether these are the right version or not.
 3. (Minor) The location suggested only accounts for JDKs, not JREs.
 
 This has been discussed multiple times on the freebsd-java mailing list
 and concluded to be the wrong way to do things each time.
 
 What would be helpful, would be for the port to output a message regarding
 how to add the installed JAR to one's class path.  That would help newbie
 users of our ports Jave infrastructure.  This could possibly be done in
 bsd.java.mk.
 
 -- 
 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-ports-bugs mailing list