This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
RE: How to run javac
- To: 'alex' <tinbb at hkplanet dot com>, cygwin at sourceware dot cygnus dot com
- Subject: RE: How to run javac
- From: Bernard Dautrevaux <Dautrevaux at microprocess dot com>
- Date: Tue, 21 Nov 2000 19:36:25 +0100
> -----Original Message-----
> From: alex [mailto:tinbb@hkplanet.com]
> Sent: Tuesday, November 21, 2000 5:33 PM
> To: cygwin@sourceware.cygnus.com
> Subject: Re: How to run javac
>
>
>
> ----- Original Message -----
> From: "Chris Abbey" <cabbey@bresnanlink.net>
> To: <cygwin@sourceware.cygnus.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@microprocess.com
b.dautrevaux@usa.net
--------------------------------------------
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com