Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Jetty/Howto/Run Jetty"

< Jetty‎ | Howto
Line 8: Line 8:
 
The easiest way to start Jetty, is to use the start.jar that comes with the distribution.
 
The easiest way to start Jetty, is to use the start.jar that comes with the distribution.
  
  [jetty-distribution-7.0.0.M3]$ '''java -jar start.jar'''
+
<source lang="bash">
 +
java -jar start.jar
 +
</source>
  
====Command Line Options====
+
To see the command line options for start.jar and help text for start.jar use:
 +
<source lang="bash">
 +
$ java -jar start.jar --help
 +
</source>
  
  $ java -jar start.jar --help
+
For a full description of start.jar features see [[Jetty/Feature/Start.jar|Jetty Start.jar Feature Guide]].
  Usage: java -jar start.jar <nowiki>[--help|--stop|--version|--dry-run|--list-options|--secure] [OPTIONS=option,...] [name=value ...] [config ...]</nowiki>
+
  
===== Command Line Option Help =====
 
 
; --help
 
: Help / Usage Information
 
; --stop
 
: Stop the actively running Jetty Server (started with a previous use of start.jar)
 
; --version
 
: Show Jetty version information
 
; --secure 
 
: Enable Security: JVM Security Manager, Security Policies, Secure & Audit Logging
 
; --dry-run       
 
: Print the command line that the start.jar generates, then exit.
 
; --list-options 
 
: List available options, then exit.
 
; OPTIONS=option,....
 
: OPTIONS allows you to specify the Jetty classpath entries that you want to use when starting up Jetty.
 
: OPTIONS lets you specify which bits and pieces of Jetty you want to use.
 
: Default OPTIONS set is "default,*
 
: NOTE: the "*" Option is always appended to the OPTIONS list.
 
; DEBUG=true
 
: Enable verbose debug output for the startup sequence
 
 
The exact JARs and classpath entries that will be activated for each option are listed in the [[Jetty/Reference/Start Options|Start Options reference]] .
 
  
 
===Alternative Startup Techniques===
 
===Alternative Startup Techniques===

Revision as of 22:37, 15 September 2009



Introduction

This howto covers how to start up Jetty as standalone, and links to pages which cover alternative methods of startup.


Steps

Standalone Startup

Using the Start.jar

The easiest way to start Jetty, is to use the start.jar that comes with the distribution.

java -jar start.jar

To see the command line options for start.jar and help text for start.jar use:

$ java -jar start.jar --help

For a full description of start.jar features see Jetty Start.jar Feature Guide.


Alternative Startup Techniques

Embedded Startup

Jetty can be configured and started as an embedded webapp server from within another Java program. See How to Embed Jetty for more details.

Eclipse Startup

Eclipse can be started up from within Eclipse using a variety of techniques; see How to Use Jetty with Eclipse IDE for details.

JUnit Startup

Copyright © Eclipse Foundation, Inc. All Rights Reserved.