Thanks to Andreas and Craig for help. I have tried to eliminate some jar files such as tomcat-jk2.jar..... to make the CLASSPATH shorter and I manage to startup tomcat.
Anyway, I'll look into catalina.bat ----- Original Message ----- From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 1:27 AM Subject: Re: Embedded Tomcat Problem > > > On Tue, 26 Nov 2002, Lee Peik Feng wrote: > > > Date: Tue, 26 Nov 2002 18:27:11 +0800 > > From: Lee Peik Feng <[EMAIL PROTECTED]> > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > > To: Tomcat Users List <[EMAIL PROTECTED]> > > Subject: Embedded Tomcat Problem > > > > 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 > > If you are trying to embed Tomcat 4.1 by calling Bootstrap.main() from > within your application, you must establish an environment like the one > set up by the catalina.bat or catalina.sh shell script. Look at the > sources for these scripts and see how they establish a class path, plus a > bunch of system properties and command line arguments, for the "start" > command. > > Craig > > > -- > 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]>
