> -----Original Message-----
> From: alex [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 21, 2000 5:33 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to run javac
> 
> 
> 
> ----- Original Message -----
> From: "Chris Abbey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
                [EMAIL PROTECTED]
-------------------------------------------- 

--
Want to unsubscribe from this list?
Send a message to [EMAIL PROTECTED]

Reply via email to