Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Starting and Stopping Tomcat7 Server from Java Program

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Starting and Stopping Tomcat7 Server from Java Program

    Hi,


    Can anyone suggest me how to Start and Stop Tomcat7 Server from a Java Program.



    Thanks in advance.



    Regards,
    Srinivas Goud N,
    srinivasgoudn@gmail.com


  2. #2
    Member
    Join Date
    Nov 2011
    Posts
    39
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Starting and Stopping Tomcat7 Server from Java Program

    Tomcat provides some useful startup/shutdown scripts located at its installation folder, so you can call those scripts from a Java program using the Runtime.exec() command.

    Spring 3
    Last edited by cafeteria84; January 22nd, 2012 at 04:06 PM.

  3. #3
    Junior Member
    Join Date
    Nov 2011
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Starting and Stopping Tomcat7 Server from Java Program

    Hi,

    Will you be more specific???

  4. #4
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Starting and Stopping Tomcat7 Server from Java Program

    Quote Originally Posted by srinivasgoudn View Post
    Hi,

    Will you be more specific???
    Did you try google this? There are many ways to do this. One is mentioned by cafeteria84. Google it and let us know, what you didn't understand and where you get stuck.

  5. #5
    Junior Member
    Join Date
    Nov 2011
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Starting and Stopping Tomcat7 Server from Java Program

    Hi,

    I am unable to find scripts to start and stop Tomcat7.0 Server.


    Can someone help me ???

    Thanks in advance..
    Srinivas

Similar Threads

  1. Help with JAVA Server-Client Program
    By GodLeoBouki in forum Java Theory & Questions
    Replies: 3
    Last Post: April 12th, 2011, 04:35 PM
  2. Starting and Stopping a loop with JButtons
    By Endevor in forum What's Wrong With My Code?
    Replies: 8
    Last Post: December 8th, 2010, 03:37 PM
  3. Starting a Slideshow Program... Lost
    By DrumKitt87 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 1st, 2010, 07:31 AM
  4. Help starting program, need done by Nov 4
    By raidcomputer in forum What's Wrong With My Code?
    Replies: 7
    Last Post: November 4th, 2009, 07:22 PM
  5. Need help starting a program
    By Mickey2315 in forum Java Theory & Questions
    Replies: 2
    Last Post: September 7th, 2009, 02:21 PM