From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17046 invoked by alias); 21 May 2006 16:04:13 -0000 Received: (qmail 17035 invoked by uid 22791); 21 May 2006 16:04:12 -0000 X-Spam-Check-By: sourceware.org Received: from ACCESS1.CIMS.NYU.EDU (HELO access1.cims.nyu.edu) (128.122.81.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 21 May 2006 16:04:09 +0000 Received: from localhost (localhost [127.0.0.1]) by access1.cims.nyu.edu (8.13.6+Sun/8.13.6) with ESMTP id k4LG46eu024684; Sun, 21 May 2006 12:04:06 -0400 (EDT) Date: Sun, 21 May 2006 16:04:00 -0000 From: Igor Peshansky Reply-To: cygwin-apps@cygwin.com To: Christopher Molnar cc: cygwin-apps@cygwin.com Subject: Re: Apache Tomcat / Tomcat based apps In-Reply-To: <44707A2B.1020507@ourworldservices.com> Message-ID: References: <44707A2B.1020507@ourworldservices.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2006-05/txt/msg00102.txt.bz2 On Sun, 21 May 2006, Christopher Molnar wrote: > Hello, > > A few weeks back I posted a message asking for some direction on > contributing to Cygwin by maintaining Apache Tomcat and a few other > tomcat based applications. A few people responded and suggested that I > look at gcj as the possible compiler to use as it is already in Cygwin. > > I have spent the last few weeks trying to get this to work with no > success. I would like to find out if it is possible to create a > dependency in a package on the sun java sdk. For example the default > install of Java 1.5 from Sun uses a home directory of: > "/cygdrive/c/Program\ Files/Java/jdk1.5.0_06" , so keying on the > presence of that directory is a good bet Java is installed with the > correct version. > > Suggestions? Comments? You can have a configuration script that contains a path to the Java SDK, which the users can edit, and install it from a default location if not present. As long as the only thing in that script is the Java SDK location, you should never have to replace it on installation. Sure, the package won't work OOTB, but configuration is as easy as putting one path in, say, /etc/tomcat.java.cfg (invent the name, there isn't a standard one). This also might be a good time to plug my java wrapper scripts in the cygwin-apps repository. They started out exactly along the lines of what you've been thinking (i.e., a hard-coded user-editable path), but my latest improvement that I've just committed uses the $JAVA_HOME setting to detect the installation. This works with both IBM and Sun JDKs (1.4.2 and 1.5.0 are the ones I've tested). I usually make symlinks in /usr/local/bin to the scripts in the local CVS copy. Check them out: . I do intend to package them as a Cygwin package at some point soon. Comments and suggestions welcome. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac"