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]>

Reply via email to