Hi, try to set the complete path like CLASSPATH=.;"c:\path\to\lib\bootstrap.jar" etc. Maybe also without quotes.
In a message today it was suggested not to mix forward and back slashes as you did. Subject was: Re: Problems running Tomcat from command line I hope this helps. I can't help you with Embedded Tomcat. Regards. Andreas On 26 Nov 2002 at 18:27, Lee Peik Feng wrote: > Hi all, > I am running on WinMe platform with jdk1.3.1_04, tomcat 4.1.12 > > I try to embed tomcat into my Java application but I am facing > some difficulties. I can't start tomcat as the classpath has > included a lot of tomcat's jar files, if i take away some jars, > I'll get NoClassDefFoundError I have moved all jar files to a lib > folder. I have also change the memory of the batch file to 4096 > > The last statement I can see from the console show that the > command is too long: java -classpath > .;"lib/bootstrap.jar";".............(cannot reach the end of > command which should be EmbeddedTomcat) > > Below is my batch file that call my EmbeddedTomcat.class > > set > CLASSPATH=.;"lib/bootstrap.jar";"lib/commons-daemon.jar";"lib/tom > cat-jni.jar ";"lib/xercesImpl.jar";"lib/xmlParserAPIs.jar" set > CLASSPATH=%CLASSPATH%;"lib/xercesImpl.jar";"lib/activation.jar";" > lib/ant.jar > ";"lib/commons-collections.jar";"lib/commons-dbcp.jar" set > CLASSPATH=%CLASSPATH%;"lib/commons-logging-api.jar";"lib/commons- > pool.jar";" lib/dom.jar";"lib/jasper-compiler.jar" set > CLASSPATH=%CLASSPATH%;"lib/jasper-runtime.jar";"lib/jaxen-full.ja > r";"lib/jax p-api.jar";"lib/jdbc2_0-stdext.jar";"lib/jdom.jar" > set > CLASSPATH=%CLASSPATH%;"lib/jndi.jar";"lib/jstl.jar";"lib/jta.jar" > ;"lib/mail. jar";"lib/naming-common.jar";"lib/naming-factory.jar" > set > CLASSPATH=%CLASSPATH%;"lib/naming-resources.jar";"lib/sax.jar";"l > ib/saxpath. jar";"lib/servlet.jar";"lib/standard.jar" set > CLASSPATH=%CLASSPATH%;"lib/xalan.jar";"lib/catalina.jar";"lib/cat > alina-ant.j > ar";"lib/commons-beanutils.jar";"lib/commons-digester.jar" set > CLASSPATH=%CLASSPATH%;"lib/commons-logging.jar";"lib/commons-mode > ler.jar";"l ib/jaas.jar";"lib/jakarta-regexp-1.2.jar" set > CLASSPATH=%CLASSPATH%;"lib/mx4j-jmx.jar";"lib/servlets-common.jar > ";"lib/serv lets-default.jar";"lib/servlets-invoker.jar" set > CLASSPATH=%CLASSPATH%;"lib/servlets-manager.jar";"lib/servlets-we > bdav.jar";" lib/tomcat-coyote.jar";"lib/tomcat-http11.jar" set > CLASSPATH=%CLASSPATH%;"lib/tomcat-jk2.jar";"lib/tomcat-jk.jar";"l > ib/tomcat-u til.jar";"lib/tomcat-warp.jar" set > CLASSPATH=%CLASSPATH%;"C:\jdk1.3.1_04\lib\tools.jar" java > -classpath %CLASSPATH% EmbeddedTomcat > > Any help would be appreciated. Thank you. > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> For > additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>