delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/28/10:23:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <C2D7D58DBFE9D111B0480060086E96350519B6C9@mail_server.gft.com>
From: "Schaible, Jorg" <Joerg DOT Schaible AT gft DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: Java NoClassDefFoundError
Date: Tue, 28 Aug 2001 16:22:32 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Hi Allen,

>       java \
[...]
>$CLASSPATH:.:run.jar:../lib/xerces.jar:../lib/crimson.jar 
>org.jboss.Main
>tomcat


Running your applications within Cygwin dos not mean that they understand
Cygwin paths. I am quite sure, that you have not built your "java" with the
Cygwin libraries yourself, so it cannot understand Cygwin (i.e. Unix) paths,
although most "java" tools accept normal slashes in the path. So have a look
at your CLASSPATH and use ; as path separator. And do not forget that you
have to escape this character. Alternatively you may use cygpath to convert
the Unix path to DOSish style (assuming your CLASSPATH is Unix style):

java -cp $(cygpath -w $CLASSPATH:.:run.jar:../lib/xerxes.jar)

Greetings,
Jorg

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019