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 sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <4.1.20000612154844.01ed33d0@pop.mathworks.com> X-Sender: paulk AT pop DOT mathworks DOT com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Mon, 12 Jun 2000 16:02:40 -0400 To: Carl Thompson From: Paul Kinnucan Subject: Re: Make and javac compliler problem in bash Cc: Cygwin List In-Reply-To: <3945278D.7087DBCF@carlthompson.net> References: <4 DOT 1 DOT 20000612123820 DOT 01ed6a10 AT pop DOT mathworks DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 11:10 AM 6/12/00 -0700, Carl Thompson wrote: >Paul Kinnucan wrote: >> >> At 10:21 AM 6/12/00 -0700, you wrote: >> > >> >I have a Makefile which compiles java program, if I type >> >make, after the screen shows the "javac xxxx.java", and then >> >hangs. The Makefile doesn't need to >> >be complex. Any simple Makefile that compiles even HelloWorld.java >> >will make the bash console stuck. >> >> See "Why is make behaving badly?" in the Cygnus faq at >> http://sourceware.cygnus.com/cygwin/faq/ > >This FAQ entry doesn't seem to address his problem. According to the FAQ entry, the Cygnus version of make runs in two modes: Unix and Windows. In Windows mode, make use the Windows command shell to launch applications. Thus, in Jin's case, assuming he was running make in Windows mode (the default), bash launches make which then uses cmd to launch javac. javac sends it standard out to the Windows command shell and then make tries forward it to a command shell that it assumes is also cmd (because it is running in Windows mode) but which is really bash. The incompatibility between Windows and Unix SIO seems a reasonable explanation to me for Jin's problem. I may be wrong but certainly it wouldn't hurt for Jin to try to run Cygnus make in Unix mode if he intends to run it under bash. > >> > >> >It seems to me that javac in Windows will accept directories only in >> >MS-DOS way. For example, "javac -classpath /a/b/c" won't work. >> > >> >> How could it be otherwise? The Windows version of javac is, surprise, >> a Windows application. Windows applications don't recognize Unix >> paths. Ergo, the Windows version of javac does not recognize Unix >> paths. QED. > >Actually, Win32 _does_ allow path names to use forward slashes as the >directory separator. The FAQ question you pointed out above even mentions But not to BEGIN a path as in Jin's example. - Paul -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com