This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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`
>

Actually, I tend to recommend and always do install cygwin in
the root directory. It gives the most natural unix like environment.

There's nothing special about the root directory, you just have to be
sure you don't delete the couple of files that cygwin puts there.

Wondering how many others do this?

Also, after this: javac /this/is/*.java works fine.




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]