Thursday, July 23, 2009

How to install and start Jetty Server

Here is what works for me:
- Download Jetty (I downloaded version 7)
- Unzip it in a directory (I used C:\Program Files\jetty_7.0.x)
- Install a JRE (I installed mine in C:\Program Files\JAVA)
- Open a cygwin command prompt (download cygwin from http://www.cygwin.com/)
- Type:
> cd /cygwin/c/Program Files/jetty_7.0.x
> export JETTY_HOME=/cygwin/c/Program Files/jetty_7.0.x
> export JAVA_HOME=/cygwin/c/Program Files/Java/jre
> java -jar start.jar

This should start Jetty.
To stop it, I just use ctrl-C (jetty will stop gracefully and not just abort)

No comments:

Post a Comment