You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Adison H <ad...@vergenet.com> on 2000/10/14 23:46:54 UTC

Tips on running tomcat on cygwin (windows)

Hi all,

When running tomcat on cygwin, I notice that tomcat.sh (or catalina.sh) passes
unix-style classpath to windows-based java.exe (ie.
CP=/some/path/a.jar:/some/path/b.jar, while what we need is really
CP=C:\some\path\a.jar;C:\some\path\b.jar). This causes ClassNotFoundException.

A good and easy way to handle this is to add:

if [ "$OSTYPE" = "cygwin32" ] ; then
  CP=`cygpath --path --windows "$CP"`
fi

before the $CP variable is actually used by java -cp $CP

Hope this helps,
Adison

NB: I'm new to this milis, sorry if what I'm posting here is not relevant. Pls
let me know.


David Soroko wrote:

> Yes, that could be very helpful.
>
> --
> ====================================================
> David Soroko
> Manna Inc.
>
> http://www.geocities.com/SiliconValley/Campus/1628/
> mailto://davids@mannanetwork.com
> ====================================================
>
> -----Original Message-----
> From: yhs@mimic.onesourcecorp.com [mailto:yhs@mimic.onesourcecorp.com]
> Sent: Saturday, October 14, 2000 9:14 PM
> To: tomcat-dev@jakarta.apache.org
> Subject: Re: Tomcat 3.2 proposal question
>
> hi guys,
> just wondering if we're going to have SSL capability compiled into tomcat
> by default for the 3.2 release ? previous releases didnt and its a pain to
> rebuild from source....
> Thanks.
> -Ys-
> yhs@mimic.onesourcecorp.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: Tips on running tomcat on cygwin (windows)

Posted by Jon Stevens <jo...@latchkey.com>.
on 10/14/2000 2:46 PM, "Adison H" <ad...@vergenet.com> wrote:

> if [ "$OSTYPE" = "cygwin32" ] ; then
> CP=`cygpath --path --windows "$CP"`
> fi

FYI:

On my box (Win98), OSTYPE outputs "cygwin" so the above fails.

I changed it to be:

if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
CP=`cygpath --path --windows "$CP"`
fi

and that works, but the problem is that the cygpath doesn't seem to do a
good job of fixing the path characters so the problem still exists.

I'm using the "latest" cygwin tree as of about a week ago, so maybe that is
the problem. I don't know.

-jon

-- 
http://scarab.tigris.org/    | http://noodle.tigris.org/
http://java.apache.org/      | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/       | http://www.sourcexchange.com/