This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Java NoClassDefFoundError


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]