How Do I Start a Jetty Web Server?


Scott Campbell

Starting a Jetty Web Server is a crucial step in developing and deploying web applications. Jetty is a popular open-source Java HTTP server and servlet container that is widely used for its lightweight and high-performance characteristics. In this tutorial, we will explore the steps to start a Jetty Web Server and get your web application up and running smoothly.

Step 1: Downloading Jetty

To start with, you need to download the Jetty distribution package from the official website. Visit https://www.html and choose the desired version suitable for your operating system.

Step 2: Extracting the Distribution Package

Once the download is complete, extract the contents of the downloaded package into a directory of your choice on your local machine. This will serve as your Jetty installation directory.

Step 3: Configuring Jetty

Before starting the server, you may need to perform some basic configuration depending on your requirements. The main configuration file for Jetty is located in the `etc` directory within your installation directory. Open this file using a text editor of your choice.

Note: If you are new to Jetty, it is recommended to keep the default configurations unless you have specific customization needs.

Tweaking Port Number

If you want to change the default port number (8080) on which Jetty listens, search for `8080` in the configuration file and replace `8080` with your desired port number.

Enabling SSL/TLS

If you require SSL/TLS encryption for secure communication, uncomment the relevant SSL configuration lines and provide the necessary certificate and key file paths.

Step 4: Starting Jetty

Now that you have downloaded and configured Jetty, it’s time to start the server. Open your command prompt or terminal and navigate to your Jetty installation directory.

  • Windows: Execute `cd path_to_jetty_directory`
  • Unix/Linux: Execute `cd /path/to/jetty_directory`

Once inside the installation directory, run the following command to start Jetty:

java -jar start.jar

This will initiate the Jetty server, and you should see console output indicating that the server has started successfully.

Step 5: Verifying Server Startup

To verify that your Jetty Web Server is up and running, open your web browser of choice and enter the following URL in the address bar:


If everything is set up correctly, you should see a default Jetty webpage indicating a successful server startup.


You have successfully started a Jetty Web Server. Now you can deploy your web applications on this server for testing or production purposes.

Tips for Advanced Usage

  • If you want to deploy multiple web applications on Jetty, consider creating separate XML configuration files for each application in the `webapps` directory of your installation. This will help keep your deployments organized.
  • If you encounter any issues during startup or deployment, refer to the official Jetty documentation at for detailed information and troubleshooting steps.

Enjoy exploring the powerful features of Jetty and building robust web applications!

Discord Server - Web Server - Private Server - DNS Server - Object-Oriented Programming - Scripting - Data Types - Data Structures

Privacy Policy