This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: bash, javac and that pesky slash.
- To: 'Craig MacFarlane' <craigm at chemconnect dot com>, "cygwin at sourceware dot cygnus dot com" <cygwin at sourceware dot cygnus dot com>
- Subject: RE: bash, javac and that pesky slash.
- From: Eric Feliu <number6 at pcbank dot net>
- Date: Mon, 24 Jan 2000 21:25:49 -0500
- Encoding: 42 TEXT
- Organization: Home
- Reply-To: "number6 at pcbank dot net" <number6 at pcbank dot net>
I use java and cygwin all the time, the thing you need to remember is that java for the
windows environment was not written to use unix command line syntax. Your compile line
should be :
bash-2.02% javac -d "d:\destdir\classes" foo.java
Like Chris Faylor stated this is really a limitation of the javac compiler and not Cygwin.
Eric
-----Original Message-----
From: Craig MacFarlane [SMTP:craigm@chemconnect.com]
Sent: Monday, January 24, 2000 12:32 PM
To: cygwin@sourceware.cygnus.com
Subject: bash, javac and that pesky slash.
Sun's javac, in jdk1.2.1, seems to change the
forward slashes used by bash to backward slashes
used by windows.
e.g.
bash-2.02% javac -d //d/destdir/classes foo.java
produces the error message
The \\d\destdir\classes directory does not exist.
Is there any way to use javac with bash
while specifying destination dirs for your classes?
It appears as though javac is trying to be too smart
by substituting slashes.
Thanks,
Craig
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com