http://www.ibm.com/developerworks/cn/web/wa-lo-jetty/
http://docs.codehaus.org/display/JETTY/Quick+Start
The following provides quick instructions for downloading, installing, and running the binary version of Jetty 6. The table at the end of this page provides links to instructions for other versions of Jetty.
To start Jetty open a command shell, go to your Jetty installation directory, and type:
java -jar start.jar
This starts Jetty running on port 8080.
Jetty will not start if another process is using port 8080. The port number can be changed by editing the $JETTY_HOME/etc/jetty.xml file. Please see the Setting Jetty's Port section below or for more details see Configuring Jetty . |
From the command shell where Jetty is running type: <ctrl-c> .
When Jetty starts it deploys a test web application on port 8080 (or whatever port you specified). To check if Jetty is running properly navigate to the test URL from a browser. For example:
Note: If you started Jetty on another host, substitute that host name for localhost . If you used a different port number you will also need to change 8080 to the correct number.
To change Jetty's default port, edit $JETTY_HOME/etc/jetty.xml and change the port number in this line, then start Jetty:
<Set name="port" > <SystemProperty name="jetty.port" default="8080" /> </Set>
Alternatively you can set the port on the command line. Please see Configuring Jetty for more details.