delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/31/13:41:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 31 Oct 2005 13:41:19 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Siegfried Heintze <siegfried AT heintze DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Wanted: Help translating classpath from CMD.EXE to bash
In-Reply-To: <5467569.1130779831011.JavaMail.SYSTEM@CCC-NOVA1>
Message-ID: <Pine.GSO.4.63.0510311333040.28242@slinky.cs.nyu.edu>
References: <5467569 DOT 1130779831011 DOT JavaMail DOT SYSTEM AT CCC-NOVA1>
MIME-Version: 1.0

On Mon, 31 Oct 2005, Siegfried Heintze wrote:

> Can someone help me translate this to bash? It works with CMD.EXE. java
> and javac are programs for sun that are not cygwin based so I believe
> they want windows style file specifications and not cygwin/bash/unix
> style file specifications.
>
> Here is the CMD.EXE script:
>
> SET CLASSPATH=.;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcservlet.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcejb.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcbrazil.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xsltcapplet.jar;c:\dev\xalan\xalan-j_2_7_0\samples\xalansamples.jar;c:\dev\xalan\xalan-j_2_7_0\serializer.jar;c:\dev\xalan\xalan-j_2_7_0\xalan.jar;c:\dev\xalan\xalan-j_2_7_0\xercesImpl.jar;c:\dev\xalan\xalan-j_2_7_0\xml-apis.jar;c:\dev\xalan\xalan-j_2_7_0\xsltc.jar
> javac -g ApplyXPathDOM.java
> java ApplyXPathDOM foo.xml /doc/name[1]/@last

As someone mentioned, you can use "cygpath -p" to convert a POSIX-style
path into a Win32-style one.

Alternatively, you can try using my java wrapper scripts that will do the
translation automatically for you (the scripts can be found at
<http://cygwin.com/cgi-bin/cvsweb.cgi/wrappers/java/?cvsroot=cygwin-apps>;
you'll need to edit the scripts to point them to your Java installation
directory).

<SHAMELESS_PLUG>
Or, since you're doing XML processing in Java, you might find XJ
(<http://www.research.ibm.com/xj/>) useful.  There's a prototype on IBM
alphaWorks (a free download), and it works under Cygwin.
</SHAMELESS_PLUG>

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019