From owner-freebsd-java Thu Sep 21 13: 8: 8 2000 Delivered-To: freebsd-java@freebsd.org Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (Postfix) with ESMTP id 0B90F37B422; Thu, 21 Sep 2000 13:07:57 -0700 (PDT) Received: (from smap@localhost) by whistle.com (8.10.0/8.10.0) id e8LK72f13774; Thu, 21 Sep 2000 13:07:02 -0700 (PDT) Received: from bubba.whistle.com( 207.76.205.7) by whistle.com via smap (V2.0) id xma013769; Thu, 21 Sep 2000 13:06:36 -0700 Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.3) id NAA18943; Thu, 21 Sep 2000 13:06:36 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200009212006.NAA18943@bubba.whistle.com> Subject: Re: cvs commit: ports INDEX In-Reply-To: <200009211731.LAA60133@harmony.village.org> "from Warner Losh at Sep 21, 2000 11:31:12 am" To: Warner Losh Date: Thu, 21 Sep 2000 13:06:36 -0700 (PDT) Cc: Akinori -Aki- MUSHA , ade@FreeBSD.org, asami@FreeBSD.org, freebsd-java@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Warner Losh writes: > : > We're only 400 ports away from 6!*6. That's just a long weekend for > : > Steve Price, so we should see that before 4.2 :-) > : > : Okay, you can find me another language than Ruby! > : > : Err, just kidding. :-> > > Hmmm. I almost said that if we found another language that we could > do this in under a day. I think both java and python are > underrepresented in the tree right now. We've got boatloads of ruby > things, a blue million P5- libraries, but very few from Java and > Python. [ nb: moving this thread to freebsd-java@freebsd.org ] This brings up a semi-serious point. There is tons of Java code out there that is distributed as JAR files, or maybe JAR files plus a native shared library. Just taking one a random example, SableCC: http://www.sable.mcgill.ca/sablecc/ This is an application, but there are also various Java libraries. We need to have a standard way of installing this kind of software. Better yet, it should work for any of our Java runtimes (JDK, kaffe, ...?) For example, we could specify that: - All JAR files go into /usr/local/share/java/jars (replace /usr/local with your favorite ${PREFIX} of course). - All native shared libraries files go into /usr/local/lib/java - Ports of application code should install helper scripts, e.g.: #!/bin/sh # Note: this script is stored as /usr/local/bin/sablecc JARSDIR=/usr/local/share/java/jars CLASSPATH=${CLASSPATH}:${JARSDIR}/sablecc-2.13.jar export CLASSPATH java SableCC ${1+"$@"} If there was a shared library, it would be added to the LD_LIBRARY_PATH environment variable in this script as well. Etc. - Ports should install man pages as well This way you could install and run as easy as this: $ cd /usr/ports/java/sablecc $ make all install $ sablecc ... Thoughts? -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message