How to run javac

Chris Abbey
Sat Nov 18 14:30:00 GMT 2000

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

javac -d . `cygpath -w /cygdrive/c/abc/`

alternately, pick up a copy of jikes ( ) which, when compiled
as a cygwin application, will grok cygwin paths natively. The download path
for a cygwin native tar ball is :

now the forces of openness
     have a powerful and
     unexpected new ally

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list