Jetty server for Windows

Viewed 49376

Can the Jetty server run on Windows-based environments. If there is a Windows installable, can someone please point me to it?

5 Answers

You can make your own XML based configuration file and pass it along with the startup command:

java -jar start.jar /path/to/jetty.xml

For example, if you want to use something else than 8080, then just put jetty.port inside the jetty.xml:

<Set name="port"><Property name="jetty.http.port" deprecated="jetty.port" default="9090" /></Set>

Or those who are impatient, can just start up their instance with:

java -jar start.jar --module=http jetty.port=9090

If you'r using Jetty version 9.x. You need to go to $JETTY_HOME/start.ini file and edit this setting jetty.http.port.

jetty.http.port=9090
Related