public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: "Joshua Daniel Franklin" <joshuadfranklin@gmail.com>
To: cygwin-apps@cygwin.com
Subject: Re: Apache Tomcat / Tomcat based apps
Date: Sun, 21 May 2006 20:06:00 -0000	[thread overview]
Message-ID: <cb51e2e0605211306y16b10c6fy900aa3d6ee82af12@mail.gmail.com> (raw)
In-Reply-To: <Pine.GSO.4.63.0605211153480.18339@access1.cims.nyu.edu>

> On Sun, 21 May 2006, Christopher Molnar wrote:
> > 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.

On 5/21/06, Igor Peshansky wrote:
> 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).

I haven't been using Java on Cygwin, but I follow it fairly closely on
Red Hat Enterprise
and Fedora mailing lists. The emerging "standard" way of doing things there is
with the JPackage.org layout, which heavily uses the alternatives system to set
up useful JAVA_HOME variables and /usr/bin/java{,c} and if desired to easily
switch between several JVMs (Sun, IBM, even GJC or Kaffe). There are some
helper scripts in a jpackage-utils package; the original from
JPackage.org uses RPMs, but Debian and Ubuntu have adopted the overall
framework with DEBs so my guess would be that making Cygwin packages
with the same methods would work too.

They have a lot of Java apps packaged  in a FHS-compliant way, including
Eclipse and Tomcat (and the config file if you want to change for example
JAVA_OPTS for Tomcat5 is /etc/tomcat5/tomcat5.conf ). From what I
remember of Igor's scripts, they basically act like this java-compat RPM:
http://jpackage.org/rpm.php?id=3319
which creates symlinks to a preexisting JVM install. (BTW: they know
their website is ugly.) See also the Ubuntu package:
http://packages.ubuntulinux.org/dapper/utils/jpackage-utils

Or, maybe that's all too complicated. :)

  reply	other threads:[~2006-05-21 20:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-21 14:33 Christopher Molnar
2006-05-21 14:51 ` Brian Dessent
2006-05-21 15:26   ` Christopher Molnar
2006-05-21 16:04 ` Igor Peshansky
2006-05-21 20:06   ` Joshua Daniel Franklin [this message]
2006-05-21 21:47     ` Igor Peshansky
2006-05-21 23:01       ` Christopher Molnar
2006-05-22  3:51         ` Igor Peshansky
2006-05-22  7:40     ` John Morrison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cb51e2e0605211306y16b10c6fy900aa3d6ee82af12@mail.gmail.com \
    --to=joshuadfranklin@gmail.com \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).