From owner-freebsd-java Fri May 17 0:15:45 2002 Delivered-To: freebsd-java@freebsd.org Received: from central.caverock.net.nz (central.caverock.net.nz [210.55.207.1]) by hub.freebsd.org (Postfix) with ESMTP id 4BD4437B437 for ; Fri, 17 May 2002 00:15:40 -0700 (PDT) Received: (from uucp@localhost) by central.caverock.net.nz (8.11.6/8.11.0) with UUCP id g4H7C7616495 for java@FreeBSD.org; Fri, 17 May 2002 19:12:07 +1200 Received: from ubana.labworks.co.nz (dialup.labworks.co.nz [192.168.7.4]) by billy.labworks.co.nz (8.9.3/8.9.3) with ESMTP id TAA20837 for ; Fri, 17 May 2002 19:33:18 +1200 (NZST) (envelope-from calvin@labworks.co.nz) To: java@FreeBSD.org Subject: Port locations From: Calvin Varney Date: Fri, 17 May 2002 16:03:13 +1200 Message-ID: <86it5nmnem.fsf@ubana.labworks.co.nz> User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386--freebsd) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 47 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I'm new to the java port process (in fact ports in general) and after some reading I'm still unclear on whether to install into PREFIX (/usr/local by default) or JAVAPREFIX (${PREFIX}/share/java by default) From http://people.freebsd.org/~znerd/javalibdirs.html we have: "A Java library is in this proposal defined as a Java archive that is primarily intended to be used by other Java programs. A Java library may include executable programs, but these are always secondary, like examples. Java Development Kits are excluded in this definition." This covers libraries but what about applications? Currently we have apps that are clearly not intended to be used by other java programs (e.g. ant, forte) installed under JAVAPREFIX and others (tomcat, jboss) directly under PREFIX. Is there some compelling reason to install apps under JAVAPREFIX? Firstly why under a share directory. According to hier(7) share is for architecture-independent files. Java apps are not necessarily architecture independent as they can use jni or make other assumptions about their environment. (the same can be said about java libraries). Secondarily, why under a java subdirectory. Other ports (non java) aren't installed by their implementation language are they? Also, the phrase "primarily intended" in this proposal may be too restrictive. I currently only use apache fop as a stand alone app though know other integrate it into their own applications, what it is primarily intended for is a little subjective. Same can be said about saxon and no doubt others. I think the important thing here is that if a jar contains components that have been designed to be imported into anything external to that jar then it should be installed in some common location. Splitting hairs but may help others in my situation. My goal is to develop a port for the EJB server JOnAS, though cutting my teeth on the UML modeller ArgoUML as it should be a lot simpler. Any guidance/comments appreciated. Regards, Calvin. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message