Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3A1AB374.56E6D0DA@veritas.com>
Date: Tue, 21 Nov 2000 09:40:04 -0800
From: Bob McGowan <rmcgowan@veritas.com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.73 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: alex <tinbb@hkplanet.com>
CC: cygwin@sourceware.cygnus.com
Subject: Re: How to run javac
References: <4.3.1.2.20001118123050.021d8890@pop.ma.ultranet.com> <5.0.0.25.0.20001118161457.00a54830@pop.bresnanlink.net> <000001c053d5$cfb10c00$7e5858ca@bct51>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Are the *.java files related (are they defining classes that are used in a common application or applet)?  If so, I think javac will automatically compile the dependencies,
so you just need to give it the top level java file anyway.

If the '*.java' files are not related, you will need to do a little shell scripting, to collect the files referenced by '*.java' into a list of Windows format names which
you then pass to javac.  I'd suggest starting with a 'for' loop to iterate over the list of file names, using cygpath on each to generate the Window's path and
concatenating the names into a list.  But you'll have to play with quotes, to preserve the backslashes.

If you aren't comfortable doing this, I can provide some help, but I won't be free to do so till next week.

alex wrote:
> 
> >
> > 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 with *.java
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan@veritas.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

