Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <17B78BDF120BD411B70100500422FC6309E163@IIS000> From: Bernard Dautrevaux To: "'alex'" , cygwin AT sourceware DOT cygnus DOT com Subject: RE: How to run javac Date: Tue, 21 Nov 2000 19:36:25 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" > -----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" > To: > 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