Mail Archives: cygwin/2003/04/24/16:53:08
Steve,
Hi. Me again.
OK. This is a good place for these questions.
Cygwin is a POSIX emulation environment for Windows, as you probably
know. Part of that emulation is the use of POSIX-style path names. This
is one of the places where there exist rough edges or visible seams
(choose your metaphor) and to bridge the gap, a utility called
"cygpath" is included in Cygwin. It performs various conversions on
individual directory or file names as well as on PATH-like (including
CLASSPATH) variables.
You'll probably need to use this if you want to make a stock Unix shell
script work under Cygwin.
Notice the echoed CLASSPATH in your diagnostic output. The path element
separators are colons. This is the Unix way. Under windows, the path
element separators must be semicolons (because the Windows drive letter
syntax uses the colon and that cannot be overridden or replaced). It's
not clear to me where this problem originates. It's probably an error
in how you set CLASSPATH in the first place.
The way I prefer to address these issues is to wrap all native
(Windows-native, that is) tools I want to invoke from Cygwin in a
generic wrapper that examines all the arguments and, as necessary,
environment variables (*) and transforms them. The advantage of this
approach is that if you have scripts that must work on both Unix (or a
Unix work-alike such as Linux) and under Cygwin, you need not maintain
two versions or incorporate all sorts of messy (and conditional)
cygpath applications you simple set your PATH to pick up these generic
Cygwin -> Windows scripts (which are all just links to the generic script).
I have developed several tools to facilitate this sort of thing. I
cannot support them, but if you'd like me to heave them over the wall,
just say so.
Randall Schulz
At 06:00 2003-04-24, Steve wrote:
>Hi;
>
>I'm on win2k and using Tomcat 3.2.4.
>
>My use of both programs and their parituclar versions are beyond my
>control.
>
>I have cygwin installed and I would like to use Tomcat from bash
>(startup.sh) to use tools available to me in bash.
>
>I can execute startup.bat from bash, but that just puts it in a dos
>window.
>
>When I have tried using startup.sh from bash I get these error messages:
>
>-----------------------------------------------------
>stever AT STEVE-R /cygdrive/c/TOMCAT/bin
>$ ./startup.sh
>Using classpath:
>C:\TOMCAT/lib/Enrollment.jar:C:\TOMCAT/lib/MFMC.jar:C:\TOMCAT/lib/activation.jar:C:\TOMCAT/lib/ant.jar:C:\TOMCAT/lib/barcode.jar:C:\TOMCAT/lib/crimson.jar:C:\TOMCAT/lib/dataaccess.jar:C:\TOMCAT/lib/datadownload.jar:C:\TOMCAT/lib/email.jar:C:\TOMCAT/lib/fabry.jar:C:\TOMCAT/lib/jasper.jar:C:\TOMCAT/lib/jaxp.jar:C:\TOMCAT/lib/jcert.jar:C:\TOMCAT/lib/jdom.jar:C:\TOMCAT/lib/jnet.jar:C:
>TOMCAT/lib/jsse.jar:C:\TOMCAT/lib/mail.jar:C:\TOMCAT/lib/mailapi.jar:C:\TOMCAT/lib/olddcs.jar:C:\TOMCAT/lib/parser.jar:C:\TOMCAT/lib/servlet.jar:C:\TOMCAT/lib/sessionlistener.jar:C:\TOMCAT/lib/singleton.jar:C:\TOMCAT/lib/standard.jar:C:\TOMCAT/lib/synagis.jar:C:\TOMCAT/lib/test:C:\TOMCAT/lib/webserver.jar:C:\TOMCAT/lib/workflow.jar:C:\TOMCAT/lib/xerces.jar:C:\TOMCAT/lib/xmldatadownload.jar:C:\JDK/
>ib/tools.jar
>
>stever AT STEVE-R /cygdrive/c/TOMCAT/bin
>$ java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat
>Exception in thread "main"
>-----------------------------------------------------
>
>Those jars exist and are where they sould be.
>
>My environment variables for tomacat and java also work.
>
>I had some memory allocation trouble with the dos & startup.bat
>Could the same thing be of issue here?
>
>
>I tried this question in two Java forums and have not gotten a
>response, my apologies for posting here.
>
>Any ideas?
>
>Steve
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -