Java NoClassDefFoundError

Schaible, Jorg Joerg.Schaible@gft.com
Tue Aug 28 07:22:00 GMT 2001


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/



More information about the Cygwin mailing list