This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Java NoClassDefFoundError
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Subject: RE: Java NoClassDefFoundError
- From: "Schaible, Jorg" <Joerg dot Schaible at gft dot com>
- Date: Tue, 28 Aug 2001 16:22:32 +0200
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/