Jetty Quick Start
The following provides quick instructions for downloading, installing, and running the binary version of Jetty. The table at the end of this page provides links to instructions for other versions of Jetty.
- 6 MB of disk space for Jetty source, 24 MB for binaries, 26 MB for Hightide
- Any operating system that supports J2SE 1.5 or greater.
- J2SE 1.5 or greater
Download and Unpack
- Download the latest Jetty from Eclipse or older versions from the codehaus. From the download site, select the version you want and follow the prompts to Save it on your system.
- Unzip it into a directory of your choice. Now it is ready to start running.
To start Jetty open a command shell, go to your Jetty installation directory, and type:
This starts Jetty running on port 8080.
From the command shell where Jetty is running type:
When Jetty starts it deploys a test web application on port 8080 (or whatever port you specified). To see if Jetty is running properly, from a browser navigate to:
[jetty_host] is the host name of the machine you are running Jetty on. You can use
localhost if you started the browser on the same machine as Jetty:
Note: if you started Jetty on a different port you will also have to change
8080 to the correct number.
Setting Jetty's Port
To change Jetty's default port, edit the
$JETTY_HOME/etc/jetty.xml and change the port number in this line, then start Jetty:
Alternatively you can set the port on the command line. Please see Configuring Jetty for more details.
Installation Instructions for Other Versions
To install and run the version you downloaded, locate your version in the table and follow the instructions: