How to launch a web server and point the browser to it when it finishes?

Posted by Wing C. Chen on Stack Overflow See other posts from Stack Overflow or by Wing C. Chen
Published on 2010-04-30T04:08:57Z Indexed on 2010/04/30 4:17 UTC
Read the original article Hit count: 262

Filed under:
|
|
|

I am writing a windows batch file to do the following things:

  1. Display a picture in the middle of the screen, showing the beautiful icon of my software.
  2. Kick of the launch of the web server.
  3. Finish displaying the picture.
  4. Point the browser to the start page.

I have already know how to do it in step 2 and 4. However, I have the following questions in writing the windows batch file: 1. How do I know that the launch of the web server is finished, taking jetty as the example? 2. How do I display a picture and stop displaying it when I want to?

Here is what I have got so far:

::here I would like to display the picture
start javaw -jar start.jar ::Starting jetty here
::here I would like to stop displaying the picture
start http://localhost:8080/myApp ::Pointing the browser to the page

Thank you in advance for your help.

© Stack Overflow or respective owner

Related posts about java

Related posts about jetty