Java, Eclipse and Web programming Tutorials
Follow me on twitter About Lars Vogel

Jetty

Lars Vogel

Version 0.4

07.02.2010

Revision History
Revision 0.124.09.2009Lars Vogel
Created
Revision 0.201.10.2009Lars Vogel
Installation of Jetty
Revision 0.302.10.2009Lars Vogel
How to start Jetty
Revision 0.407.02.2010Lars Vogel
Added info about the current status of the article

Jetty

This articles gives an small overview over Jetty, its installation and how to start the Jetty server. You find much more information on the Jetty homepage (see resources).


Table of Contents

1. Overview
2. Installation
3. Start Jetty
4. Thank you
5. Questions and Discussion
6. Links and Literature

1. Overview

Jetty is a web container. It has the following "core components":

  • Http Server

  • Servlet Container

  • HTTP Client

The current version of Jetty is Jetty 7 which supports the Servlet API 2.5 and JSP 2.1.

2. Installation

Download Jetty from Jetty Download and extract the zip file somewhere on your filesystem.

3. Start Jetty

To start Jetty, switch on the command line to the installation directory and start Jetty via the command:

			
jar -jar start.jar

		

This should start Jetty on http://localhost:8080/

To stop Jetty press Cntr+C.

4. Thank you

Thank you for practicing with this tutorial.

Please note that I maintain this website in my private time. If you like the information I'm providing please help me by donating.

5. Questions and Discussion

For questions and discussion around this article please use the www.vogella.de Google Group. Also if you note an error in this article please post the error and if possible the correction to the Group.

I believe the following is a very good guideline for asking questions in general and also for the Google group How To Ask Questions The Smart Way.

6. Links and Literature

http://eclipse.org/jetty/ Jetty Homepage