Mail Archives: cygwin/2000/11/21/14:00:28
> -----Original Message-----
> From: alex [mailto:tinbb AT hkplanet DOT com]
> Sent: Tuesday, November 21, 2000 5:33 PM
> To: cygwin AT sourceware DOT cygnus DOT com
> Subject: Re: How to run javac
>
>
>
> ----- Original Message -----
> From: "Chris Abbey" <cabbey AT bresnanlink DOT net>
> To: <cygwin AT sourceware DOT cygnus DOT com>
> Sent: Sunday, November 19, 2000 6:27 AM
> Subject: Re: How to run javac
>
>
> >
> >
> > Larry, nailed problem #1, javac is itself a java program,
> and java doesn't
> > grok cygwin paths (unfortunately) so you need to either
> pass it a dos path
> > it will understand, or a basic unix path it will understand. I'll
> discourage
> > you from attempting the second, as it would go against the generally
> accepted
> > rule of not putting cygwin' root directory in your dos root
> ( i.e. / ==
> c:\ ).
> > This leaves the best option as passing java a path it will
> understand. Try
> > this:
> >
> > javac -d . `cygpath -w /cygdrive/c/abc/abc.java`
> >
>
> but it doesn't work when *.java
>
Then what about:
#! /bin/sh
/full/path/to/javac -d . `for i in $*; cygpath -w $i; done`
put in a file named "javac" placed in your path (e.g. in /usr/local/bin).
If the real javac is not in your PATH, typing
javac *.java
will run the script above and should invoke the real javac with windows
pathnames.
I hope it runs, I don't have time to test it, so don't flame at me; you
should at least get the idea.
--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel: +33 (0) 1 47 68 80 80
Fax: +33 (0) 1 47 88 97 85
e-mail: dautrevaux AT microprocess DOT com
b DOT dautrevaux AT usa DOT net
--------------------------------------------
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -