Apache Tomcat / Tomcat based apps

Igor Peshansky pechtcha@cs.nyu.edu
Sun May 21 16:04:00 GMT 2006

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

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.
      |\      _,,,---,,_	    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"

More information about the Cygwin-apps mailing list