Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Reply-To: <Robert.Bram@infotech.monash.edu.au>
From: "Robert Mark Bram" <relaxedrob@optusnet.com.au>
To: "Cygwin" <cygwin@cygwin.com>
Subject: Linux or DOS javac?
Date: Mon, 19 May 2003 20:55:26 +1000
Message-ID: <DDEDIPLLKIAMLBCBFCHEMEDBCLAA.relaxedrob@optusnet.com.au>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal

Howdy All!

I have found out that when I compile java code in cygwin, I have to make
sure that my classpath and file names are in DOS format. For example;

CLASSPATH=".;C:\temp" javac "C:\temp\AuctionEntryImpl.java"

I believe this is required because the javac that is being used is a
DOS/Windows javac and the file paths are translated.

My problem is that I am trying to install the Janos nodeos which has a large
set of build scripts that require Linux like paths, not DOS. My reason for
saying this is because I am getting error messages like this:

error: cannot read:
/cygdrive/c/java/jnodeos-20020317/src/nodeos/Address.Java

I take this to mean that the script is building Linux paths which are not
understood by the DOS javac.

If I have assumed correctly so far, can I download a Linux/Unix javac and
will it use the Linux paths ok?

I have examined some of the build scripts - it is not easy to change how
they deal with paths because they do a lot sed operations (for example) and
heaps of variable substitutions as part of their sanity checks.

Any help would be appreciated!

Rob
:)
:->
:-}


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

