This works for me:
String[] args = { "-start" };
org.apache.tomcat.startup.Tomcat.main(args);
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 5/30/01, 11:57:59 AM, Joseph Variamparambil
<[EMAIL PROTECTED]> wrote regarding Starting tomcat
from a Java Class:
> hello,
> how do i make an instance of the tomcat server and run its ?start?
> method? Is it possible to do something like this...(just an example...i
> don't know the real class and method names!):
> class TestTomcat{
> void StartTomcat(){
> Tomcat server=new Tomcat(8080);
> server.start();
> }
> }
> Thanks for any help.
> -Joseph.