Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: Cygwin List Message-Id: <6.1.0.6.0.20040913114311.03cc30d8@pop.prospeed.net> X-Sender: Date: Mon, 13 Sep 2004 11:51:18 -0400 To: Kostadin Cholakov , cygwin AT cygwin DOT com From: Larry Hall Subject: Re: Compilation problems In-Reply-To: <20040913122746.19822.qmail@web41905.mail.yahoo.com> References: <20040913122746 DOT 19822 DOT qmail AT web41905 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 08:27 AM 9/13/2004, you wrote: >Hi > >I have problems with compiling Java and C++ programs. >I have installed Cygwin version 2.427 with all >packages provided in Setup.exe. When I use Xemacs to >write my programs, everything seems to be normal- >correct formatting, there are the necessarry tools >such as JDE for Java, for example, and so on. But when >I try to compile a program, Xemacs blows up the >message "Searching for program: No such file or >directory, java". When I try in BASH by typing javac >the message, of course, is: "No such command". The >same happens when I type java -version. I have tried >only with C++ and Java but I suspect that the >situation will be the same with other languages. I am >sending the result from cygcheck. Please, have a look >and if possible, help me! Thanks! Is 'java' in your path? It doesn't look like it to me but I'm not sure where you put it. I'm also unclear as to from where and how the messages you report are generated. If you're still having trouble with this, providing specific steps that show the problem would be helpful. Keep in mind that 'java' is not a Cygwin program, so using it with Cygwin paths directly will cause problems. You may want to create wrappers for your use that employ 'cygpath' to do path conversion. Cygwin's Java compiler is 'gcj', FWIW. It understands all Cygwin's nice extras. There has been lots of discussion in the past about using Sun's Java with Cygwin and ways to integrate it more completely. You may want to check out some of that previous discussion too. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/