Wanted: Help translating classpath from CMD.EXE to bash
Larry Hall (Cygwin)
reply-to-list-only-lh@cygwin.com
Tue Nov 1 00:21:00 GMT 2005
On 10/31/2005, Siegfried Heintze wrote:
> >As someone mentioned, you can use "cygpath -p" to convert a POSIX-style
> >> path into a Win32-style one.
>
>
> I think I need to go the other way. Given a CLASSPATH variable in windows,
> how do I convert it to cygwin? Do I use ":" to separate the elements, or do
> I use "\;". If I use ":", what about the windows device names?
>
> It seems to me this should have worked, but it does not:
> * CLASSPATH=.\;c:\\dev\\xalan\\xalan-j_2_7_0\\xsltcservlet.jar\;others
> * export $CLASSPATH
> * echo ${CLASSPATH}
> * javac myprogram.java
If you're running from bash or any other Cygwin shell, then the path is
already in POSIX form. 'javac' won't understand this, since it is a
Windows program. 'cygpath' is the way to convert between POSIX paths and
Windows/DOS, forward and back. In your case, you want POSIX->Windows/DOS
conversion. See 'man cygpath' for more details.
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
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/
More information about the Cygwin
mailing list